From 1f87c72c851a941def1f3d2ad63b7c7d9e0f9f3d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 9 Nov 2022 19:00:02 +0000 Subject: [PATCH 1/2] docs: fix minor docstring formatting PiperOrigin-RevId: 487258346 Source-Link: https://github.com/googleapis/googleapis/commit/6e1a5a066659794f26091674e3668229e7750052 Source-Link: https://github.com/googleapis/googleapis-gen/commit/966c9cd89b65e8132c087344883d02b788c137a0 Copy-Tag: eyJwIjoiamF2YS1jb250ZW50d2FyZWhvdXNlLy5Pd2xCb3QueWFtbCIsImgiOiI5NjZjOWNkODliNjVlODEzMmMwODczNDQ4ODNkMDJiNzg4YzEzN2EwIn0= --- .../v1/DocumentLinkServiceGrpc.java | 734 ------- .../v1/DocumentSchemaServiceGrpc.java | 901 -------- .../v1/DocumentServiceGrpc.java | 1096 ---------- .../v1/RuleSetServiceGrpc.java | 835 ------- .../v1/SynonymSetServiceGrpc.java | 866 -------- .../v1/AsyncDocumentServiceRequestProto.java | 82 - .../contentwarehouse/v1/CommonProto.java | 155 -- .../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 | 245 --- .../contentwarehouse/v1/DocumentProto.java | 376 ---- .../v1/DocumentSchemaProto.java | 238 -- .../v1/DocumentSchemaServiceProto.java | 204 -- .../v1/DocumentServiceProto.java | 276 --- .../v1/DocumentServiceRequestProto.java | 264 --- .../contentwarehouse/v1/FiltersProto.java | 145 -- .../v1/FloatTypeOptionsOrBuilder.java | 24 - .../v1/GetDocumentSchemaRequestOrBuilder.java | 54 - .../v1/GetRuleSetRequestOrBuilder.java | 58 - .../v1/GetSynonymSetRequestOrBuilder.java | 58 - .../contentwarehouse/v1/HistogramProto.java | 133 -- .../v1/IntegerTypeOptionsOrBuilder.java | 24 - .../v1/MapTypeOptionsOrBuilder.java | 24 - .../v1/PropertyTypeOptionsOrBuilder.java | 89 - .../contentwarehouse/v1/RuleEngineProto.java | 372 ---- .../v1/RuleSetServiceProto.java | 102 - .../v1/RuleSetServiceRequestProto.java | 160 -- .../contentwarehouse/v1/SynonymSetProto.java | 94 - .../v1/SynonymSetServiceProto.java | 104 - .../v1/SynonymSetServiceRequestProto.java | 161 -- .../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/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 + .../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 ...HttpJsonRuleSetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonRuleSetServiceStub.java | 0 ...pJsonSynonymSetServiceCallableFactory.java | 0 .../stub/HttpJsonSynonymSetServiceStub.java | 0 .../v1/stub/RuleSetServiceStub.java | 0 .../v1/stub/RuleSetServiceStubSettings.java | 0 .../v1/stub/SynonymSetServiceStub.java | 0 .../stub/SynonymSetServiceStubSettings.java | 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/MockRuleSetService.java | 0 .../v1/MockRuleSetServiceImpl.java | 0 .../v1/MockSynonymSetService.java | 0 .../v1/MockSynonymSetServiceImpl.java | 0 .../v1/RuleSetServiceClientHttpJsonTest.java | 0 .../v1/RuleSetServiceClientTest.java | 0 .../SynonymSetServiceClientHttpJsonTest.java | 0 .../v1/SynonymSetServiceClientTest.java | 0 .../v1/DocumentLinkServiceGrpc.java | 566 +++++ .../v1/DocumentSchemaServiceGrpc.java | 679 ++++++ .../v1/DocumentServiceGrpc.java | 843 ++++++++ .../v1/RuleSetServiceGrpc.java | 651 ++++++ .../v1/SynonymSetServiceGrpc.java | 675 ++++++ .../v1/AccessControlAction.java | 508 ++--- .../v1/AccessControlActionOrBuilder.java | 38 +- .../v1/AccessControlMode.java | 87 +- .../cloud/contentwarehouse/v1/Action.java | 1169 ++++------ .../v1/ActionExecutorOutput.java | 456 ++-- .../v1/ActionExecutorOutputOrBuilder.java | 33 +- .../contentwarehouse/v1/ActionOrBuilder.java | 107 +- .../contentwarehouse/v1/ActionOutput.java | 564 ++--- .../v1/ActionOutputOrBuilder.java | 42 +- .../v1/AddToFolderAction.java | 358 ++- .../v1/AddToFolderActionOrBuilder.java | 36 +- .../v1/AsyncDocumentServiceRequestProto.java | 70 + .../v1/CloudAIDocumentOption.java | 543 ++--- .../v1/CloudAIDocumentOptionOrBuilder.java | 52 +- .../contentwarehouse/v1/CommonProto.java | 133 ++ .../v1/CreateDocumentLinkRequest.java | 601 ++---- .../CreateDocumentLinkRequestOrBuilder.java | 63 +- .../v1/CreateDocumentMetadata.java | 254 +-- .../v1/CreateDocumentMetadataOrBuilder.java | 9 + .../v1/CreateDocumentRequest.java | 890 +++----- .../v1/CreateDocumentRequestOrBuilder.java | 99 +- .../v1/CreateDocumentResponse.java | 522 ++--- .../v1/CreateDocumentResponseOrBuilder.java | 42 +- .../v1/CreateDocumentSchemaRequest.java | 515 ++--- .../CreateDocumentSchemaRequestOrBuilder.java | 56 + .../v1/CreateRuleSetRequest.java | 492 ++--- .../v1/CreateRuleSetRequestOrBuilder.java | 58 + .../v1/CreateSynonymSetRequest.java | 499 ++--- .../v1/CreateSynonymSetRequestOrBuilder.java | 58 + .../contentwarehouse/v1/DataUpdateAction.java | 513 +++-- .../v1/DataUpdateActionOrBuilder.java | 49 +- .../v1/DataValidationAction.java | 509 +++-- .../v1/DataValidationActionOrBuilder.java | 49 +- .../contentwarehouse/v1/DatabaseType.java | 82 +- .../contentwarehouse/v1/DateTimeArray.java | 413 ++-- .../v1/DateTimeArrayOrBuilder.java | 37 +- .../v1/DateTimeTypeOptions.java | 254 +-- .../v1/DateTimeTypeOptionsOrBuilder.java | 9 + .../v1/DeleteDocumentAction.java | 292 ++- .../v1/DeleteDocumentActionOrBuilder.java | 20 + .../v1/DeleteDocumentLinkRequest.java | 473 ++-- .../DeleteDocumentLinkRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentRequest.java | 456 ++-- .../v1/DeleteDocumentRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentSchemaRequest.java | 378 ++-- .../DeleteDocumentSchemaRequestOrBuilder.java | 29 + .../v1/DeleteRuleSetRequest.java | 358 ++- .../v1/DeleteRuleSetRequestOrBuilder.java | 33 + .../v1/DeleteSynonymSetRequest.java | 365 ++-- .../v1/DeleteSynonymSetRequestOrBuilder.java | 33 + .../cloud/contentwarehouse/v1/Document.java | 1921 +++++++---------- .../contentwarehouse/v1/DocumentLink.java | 1062 ++++----- .../contentwarehouse/v1/DocumentLinkName.java | 0 .../v1/DocumentLinkOrBuilder.java | 98 +- .../v1/DocumentLinkServiceProto.java | 218 ++ .../contentwarehouse/v1/DocumentName.java | 0 .../v1/DocumentOrBuilder.java | 204 +- .../contentwarehouse/v1/DocumentProto.java | 303 +++ .../contentwarehouse/v1/DocumentQuery.java | 1269 ++++------- .../v1/DocumentQueryOrBuilder.java | 155 +- .../v1/DocumentReference.java | 938 +++----- .../v1/DocumentReferenceOrBuilder.java | 107 +- .../contentwarehouse/v1/DocumentSchema.java | 1033 ++++----- .../v1/DocumentSchemaName.java | 0 .../v1/DocumentSchemaOrBuilder.java | 111 +- .../v1/DocumentSchemaProto.java | 205 ++ .../v1/DocumentSchemaServiceProto.java | 184 ++ .../v1/DocumentServiceProto.java | 246 +++ .../v1/DocumentServiceRequestProto.java | 225 ++ .../cloud/contentwarehouse/v1/EnumArray.java | 348 ++- .../v1/EnumArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/EnumTypeOptions.java | 393 ++-- .../v1/EnumTypeOptionsOrBuilder.java | 39 +- .../cloud/contentwarehouse/v1/EnumValue.java | 320 ++- .../v1/EnumValueOrBuilder.java | 27 +- .../contentwarehouse/v1/FetchAclRequest.java | 463 ++-- .../v1/FetchAclRequestOrBuilder.java | 38 +- .../contentwarehouse/v1/FetchAclResponse.java | 417 ++-- .../v1/FetchAclResponseOrBuilder.java | 34 +- .../contentwarehouse/v1/FileTypeFilter.java | 395 ++-- .../v1/FileTypeFilterOrBuilder.java | 24 +- .../contentwarehouse/v1/FiltersProto.java | 118 + .../cloud/contentwarehouse/v1/FloatArray.java | 339 ++- .../v1/FloatArrayOrBuilder.java | 27 +- .../contentwarehouse/v1/FloatTypeOptions.java | 254 +-- .../v1/FloatTypeOptionsOrBuilder.java | 9 + .../v1/GetDocumentRequest.java | 456 ++-- .../v1/GetDocumentRequestOrBuilder.java | 43 +- .../v1/GetDocumentSchemaRequest.java | 365 ++-- .../v1/GetDocumentSchemaRequestOrBuilder.java | 29 + .../v1/GetRuleSetRequest.java | 358 ++- .../v1/GetRuleSetRequestOrBuilder.java | 33 + .../v1/GetSynonymSetRequest.java | 358 ++- .../v1/GetSynonymSetRequestOrBuilder.java | 33 + .../contentwarehouse/v1/HistogramProto.java | 113 + .../contentwarehouse/v1/HistogramQuery.java | 514 ++--- .../v1/HistogramQueryOrBuilder.java | 53 +- .../v1/HistogramQueryPropertyNameFilter.java | 679 +++--- ...ogramQueryPropertyNameFilterOrBuilder.java | 68 +- .../v1/HistogramQueryResult.java | 589 +++-- .../v1/HistogramQueryResultOrBuilder.java | 59 +- .../contentwarehouse/v1/IntegerArray.java | 346 ++- .../v1/IntegerArrayOrBuilder.java | 27 +- .../v1/IntegerTypeOptions.java | 254 +-- .../v1/IntegerTypeOptionsOrBuilder.java | 9 + .../contentwarehouse/v1/InvalidRule.java | 412 ++-- .../v1/InvalidRuleOrBuilder.java | 35 +- .../v1/ListDocumentSchemasRequest.java | 492 ++--- .../ListDocumentSchemasRequestOrBuilder.java | 47 +- .../v1/ListDocumentSchemasResponse.java | 492 ++--- .../ListDocumentSchemasResponseOrBuilder.java | 42 +- .../v1/ListLinkedSourcesRequest.java | 571 ++--- .../v1/ListLinkedSourcesRequestOrBuilder.java | 55 +- .../v1/ListLinkedSourcesResponse.java | 486 ++--- .../ListLinkedSourcesResponseOrBuilder.java | 45 +- .../v1/ListLinkedTargetsRequest.java | 463 ++-- .../v1/ListLinkedTargetsRequestOrBuilder.java | 43 +- .../v1/ListLinkedTargetsResponse.java | 486 ++--- .../ListLinkedTargetsResponseOrBuilder.java | 45 +- .../v1/ListRuleSetsRequest.java | 472 ++-- .../v1/ListRuleSetsRequestOrBuilder.java | 47 +- .../v1/ListRuleSetsResponse.java | 486 ++--- .../v1/ListRuleSetsResponseOrBuilder.java | 45 +- .../v1/ListSynonymSetsRequest.java | 472 ++-- .../v1/ListSynonymSetsRequestOrBuilder.java | 47 +- .../v1/ListSynonymSetsResponse.java | 476 ++-- .../v1/ListSynonymSetsResponseOrBuilder.java | 45 +- .../contentwarehouse/v1/LocationName.java | 0 .../contentwarehouse/v1/MapProperty.java | 503 ++--- .../v1/MapPropertyOrBuilder.java | 49 +- .../contentwarehouse/v1/MapTypeOptions.java | 251 +-- .../v1/MapTypeOptionsOrBuilder.java | 9 + .../v1/MergeFieldsOptions.java | 335 ++- .../v1/MergeFieldsOptionsOrBuilder.java | 30 +- .../cloud/contentwarehouse/v1/Property.java | 1127 ++++------ .../contentwarehouse/v1/PropertyArray.java | 403 ++-- .../v1/PropertyArrayOrBuilder.java | 36 +- .../v1/PropertyDefinition.java | 1664 +++++--------- .../v1/PropertyDefinitionOrBuilder.java | 136 +- .../contentwarehouse/v1/PropertyFilter.java | 410 ++-- .../v1/PropertyFilterOrBuilder.java | 36 +- .../v1/PropertyOrBuilder.java | 91 +- .../v1/PropertyTypeOptions.java | 528 ++--- .../v1/PropertyTypeOptionsOrBuilder.java | 53 + .../contentwarehouse/v1/PublishAction.java | 434 ++-- .../v1/PublishActionOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/QAResult.java | 749 +++---- .../v1/QAResultOrBuilder.java | 36 +- .../v1/RawDocumentFileType.java | 98 +- .../v1/RemoveFromFolderAction.java | 409 ++-- .../v1/RemoveFromFolderActionOrBuilder.java | 36 +- .../contentwarehouse/v1/RequestMetadata.java | 337 ++- .../v1/RequestMetadataOrBuilder.java | 26 +- .../contentwarehouse/v1/ResponseMetadata.java | 330 ++- .../v1/ResponseMetadataOrBuilder.java | 27 +- .../cloud/contentwarehouse/v1/Rule.java | 770 +++---- .../contentwarehouse/v1/RuleActionsPair.java | 472 ++-- .../v1/RuleActionsPairOrBuilder.java | 44 +- .../contentwarehouse/v1/RuleEngineOutput.java | 558 ++--- .../v1/RuleEngineOutputOrBuilder.java | 49 +- .../contentwarehouse/v1/RuleEngineProto.java | 328 +++ .../v1/RuleEvaluatorOutput.java | 699 +++--- .../v1/RuleEvaluatorOutputOrBuilder.java | 72 +- .../contentwarehouse/v1/RuleOrBuilder.java | 69 +- .../cloud/contentwarehouse/v1/RuleSet.java | 629 +++--- .../contentwarehouse/v1/RuleSetName.java | 0 .../contentwarehouse/v1/RuleSetOrBuilder.java | 63 +- .../v1/RuleSetServiceProto.java | 89 + .../v1/RuleSetServiceRequestProto.java | 140 ++ .../v1/SearchDocumentsRequest.java | 1042 ++++----- .../v1/SearchDocumentsRequestOrBuilder.java | 106 +- .../v1/SearchDocumentsResponse.java | 1655 +++++--------- .../v1/SearchDocumentsResponseOrBuilder.java | 120 +- .../contentwarehouse/v1/SetAclRequest.java | 532 ++--- .../v1/SetAclRequestOrBuilder.java | 46 +- .../contentwarehouse/v1/SetAclResponse.java | 414 ++-- .../v1/SetAclResponseOrBuilder.java | 34 +- .../cloud/contentwarehouse/v1/SynonymSet.java | 913 ++++---- .../contentwarehouse/v1/SynonymSetName.java | 0 .../v1/SynonymSetOrBuilder.java | 54 +- .../contentwarehouse/v1/SynonymSetProto.java | 76 + .../v1/SynonymSetServiceProto.java | 91 + .../v1/SynonymSetServiceRequestProto.java | 141 ++ .../cloud/contentwarehouse/v1/TextArray.java | 348 ++- .../v1/TextArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/TextTypeOptions.java | 251 +-- .../v1/TextTypeOptionsOrBuilder.java | 9 + .../cloud/contentwarehouse/v1/TimeFilter.java | 465 ++-- .../v1/TimeFilterOrBuilder.java | 30 +- .../contentwarehouse/v1/TimestampArray.java | 402 ++-- .../v1/TimestampArrayOrBuilder.java | 36 +- .../v1/TimestampTypeOptions.java | 254 +-- .../v1/TimestampTypeOptionsOrBuilder.java | 9 + .../contentwarehouse/v1/TimestampValue.java | 484 ++--- .../v1/TimestampValueOrBuilder.java | 38 +- .../v1/UpdateDocumentMetadata.java | 254 +-- .../v1/UpdateDocumentMetadataOrBuilder.java | 9 + .../v1/UpdateDocumentRequest.java | 816 +++---- .../v1/UpdateDocumentRequestOrBuilder.java | 91 +- .../v1/UpdateDocumentResponse.java | 522 ++--- .../v1/UpdateDocumentResponseOrBuilder.java | 42 +- .../v1/UpdateDocumentSchemaRequest.java | 515 ++--- .../UpdateDocumentSchemaRequestOrBuilder.java | 60 + .../contentwarehouse/v1/UpdateOptions.java | 490 ++--- .../v1/UpdateOptionsOrBuilder.java | 40 +- .../v1/UpdateRuleSetRequest.java | 492 ++--- .../v1/UpdateRuleSetRequestOrBuilder.java | 60 + .../v1/UpdateSynonymSetRequest.java | 499 ++--- .../v1/UpdateSynonymSetRequestOrBuilder.java | 60 + .../cloud/contentwarehouse/v1/UpdateType.java | 103 +- .../cloud/contentwarehouse/v1/UserInfo.java | 431 ++-- .../v1/UserInfoOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/Value.java | 835 +++---- .../contentwarehouse/v1/ValueOrBuilder.java | 72 +- .../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 | 2 +- .../cloud/contentwarehouse/v1/filters.proto | 0 .../cloud/contentwarehouse/v1/histogram.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 340 files changed, 27750 insertions(+), 44199 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/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/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/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/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/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/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/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/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/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 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 (68%) 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 (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java (70%) 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 (68%) 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/CreateDocumentLinkRequest.java (66%) 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 (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java (80%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java (60%) 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 (61%) 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/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 (61%) 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 (67%) 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 (68%) 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 (63%) 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 (74%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java (69%) 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 (83%) 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 (81%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java (89%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java (69%) 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 (71%) 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 (65%) 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/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 (75%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java (70%) 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 (65%) 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/GetDocumentRequest.java (68%) 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 (63%) 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 (63%) 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 (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java (72%) 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 (63%) 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/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 (71%) 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 (68%) 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 (62%) 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 (68%) 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/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 (79%) 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 (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java (85%) 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 (69%) 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 (68%) 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 (73%) 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 (69%) 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 (72%) 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/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 (89%) 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 (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java (74%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java (80%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java (71%) 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 (63%) 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 (66%) 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 (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java (71%) 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 (61%) 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 (70%) 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 (62%) 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 (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java (70%) 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/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 (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto (100%) 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/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%) 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 da565dec4003..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java +++ /dev/null @@ -1,734 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.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 abstract static class DocumentLinkServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall( - getListLinkedTargetsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getListLinkedSourcesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentLinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentLinkMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_DOCUMENT_LINK))) - .addMethod( - getDeleteDocumentLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DOCUMENT_LINK))) - .build(); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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 DocumentLinkServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentLinkServiceImplBase 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(); - } - } - } - - 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 a0304fa8b90c..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java +++ /dev/null @@ -1,901 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.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 abstract static class DocumentSchemaServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a document schema.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentSchemaMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getListDocumentSchemasMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_GET_DOCUMENT_SCHEMA))) - .addMethod( - getDeleteDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty>(this, 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>( - this, METHODID_LIST_DOCUMENT_SCHEMAS))) - .build(); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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 DocumentSchemaServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentSchemaServiceImplBase 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(); - } - } - } - - 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 35dcc5cef6d5..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java +++ /dev/null @@ -1,1096 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.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.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 abstract static class DocumentServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a document.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void searchDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchDocumentsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_CREATE_DOCUMENT))) - .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document>(this, METHODID_GET_DOCUMENT))) - .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( - this, METHODID_UPDATE_DOCUMENT))) - .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DOCUMENT))) - .addMethod( - getSearchDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( - this, METHODID_SEARCH_DOCUMENTS))) - .addMethod( - getFetchAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse>( - this, METHODID_FETCH_ACL))) - .addMethod( - getSetAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse>(this, METHODID_SET_ACL))) - .build(); - } - } - - /** - * - * - *
-   * 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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); - } - - /** - * - * - *
-     * 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_FETCH_ACL = 5; - private static final int METHODID_SET_ACL = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final DocumentServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentServiceImplBase 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_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(); - } - } - } - - 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(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 07e5441a24b5..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java +++ /dev/null @@ -1,835 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.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 abstract static class RuleSetServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a ruleset.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteRuleSet( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRuleSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists rulesets.
-     * 
- */ - public void listRuleSets( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRuleSetsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>(this, 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>( - this, METHODID_UPDATE_RULE_SET))) - .addMethod( - getDeleteRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, - com.google.protobuf.Empty>(this, 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>( - this, METHODID_LIST_RULE_SETS))) - .build(); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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 RuleSetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(RuleSetServiceImplBase 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(); - } - } - } - - 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 f4c91637c842..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java +++ /dev/null @@ -1,866 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.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 abstract static class SynonymSetServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSynonymSetMethod(), 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.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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void listSynonymSets( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSynonymSetsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_UPDATE_SYNONYM_SET))) - .addMethod( - getDeleteSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, - com.google.protobuf.Empty>(this, 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>( - this, METHODID_LIST_SYNONYM_SETS))) - .build(); - } - } - - /** - * - * - *
-   * 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 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 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 SynonymSetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SynonymSetServiceImplBase 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(); - } - } - } - - 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 17e08941c7ba..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\234\001\n$com.google.cloud.c" - + "ontentwarehouse.v1B AsyncDocumentService" - + "RequestProtoP\001ZPgoogle.golang.org/genpro" - + "to/googleapis/cloud/contentwarehouse/v1;" - + "contentwarehouseb\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 7bee0a98a3d0..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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*\336" - + "\001\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*O\n\014DatabaseType\022" - + "\016\n\nDB_UNKNOWN\020\000\022\024\n\020DB_INFRA_SPANNER\020\001\022\031\n" - + "\025DB_CLOUD_SQL_POSTGRES\020\002*\252\001\n\021AccessContr" - + "olMode\022\024\n\020ACL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE" - + "_UNIVERSAL_ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT" - + "_LEVEL_ACCESS_CONTROL_BYOID\020\002\022.\n*ACL_MOD" - + "E_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI\020\003B\335\001" - + "\n$com.google.cloud.contentwarehouse.v1B\013" - + "CommonProtoP\001ZPgoogle.golang.org/genprot" - + "o/googleapis/cloud/contentwarehouse/v1;c" - + "ontentwarehouse\352AS\n(contentwarehouse.goo" - + "gleapis.com/Location\022\'projects/{project}" - + "/locations/{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 a7fe4c4daba5..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 d2206ac27865..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 3ac8e8bbaa0d..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 381a6c44293a..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 2dd724c06904..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 06e924521eb3..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 68baa85c8b0c..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 6bcceb42f635..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 0955c099a9de..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 391c21ed0243..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\nproperties\030\007 " - + "\003(\0132*.google.cloud.contentwarehouse.v1.P" - + "roperty\0224\n\013update_time\030\010 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013create_time\030\t \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n\026r" - + "aw_document_file_type\030\n \001(\01625.google.clo" - + "ud.contentwarehouse.v1.RawDocumentFileTy" - + "pe\022\025\n\rasync_enabled\030\014 \001(\010\022 \n\030text_extrac" - + "tion_disabled\030\023 \001(\010\022\017\n\007creator\030\r \001(\t\022\017\n\007" - + "updater\030\016 \001(\t:\272\001\352A\266\001\n(contentwarehouse.g" - + "oogleapis.com/Document\022\n\nproperties\030\001 \003(\0132*.google.c" - + "loud.contentwarehouse.v1.Property\"\260\001\n\013Ma" - + "pProperty\022I\n\006fields\030\001 \003(\01329.google.cloud" - + ".contentwarehouse.v1.MapProperty.FieldsE" - + "ntry\032V\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005valu" - + "e\030\002 \001(\0132\'.google.cloud.contentwarehouse." - + "v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013float_value\030\001 " - + "\001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022\026\n\014string_val" - + "ue\030\003 \001(\tH\000\022A\n\nenum_value\030\004 \001(\0132+.google." - + "cloud.contentwarehouse.v1.EnumValueH\000\022/\n" - + "\016datetime_value\030\005 \001(\0132\025.google.type.Date" - + "TimeH\000\022K\n\017timestamp_value\030\006 \001(\01320.google" - + ".cloud.contentwarehouse.v1.TimestampValu" - + "eH\000\022\027\n\rboolean_value\030\007 \001(\010H\000B\006\n\004kind\"\032\n\t" - + "EnumValue\022\r\n\005value\030\001 \001(\t*\341\001\n\023RawDocument" - + "FileType\022&\n\"RAW_DOCUMENT_FILE_TYPE_UNSPE" - + "CIFIED\020\000\022\036\n\032RAW_DOCUMENT_FILE_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_DOCUME" - + "NT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_DOCUMENT_FILE" - + "_TYPE_TEXT\020\005B\211\001\n$com.google.cloud.conten" - + "twarehouse.v1B\rDocumentProtoP\001ZPgoogle.g" - + "olang.org/genproto/googleapis/cloud/cont" - + "entwarehouse/v1;contentwarehouseb\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", - "TextExtractionDisabled", - "Creator", - "Updater", - "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", - }); - 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 414e6c419710..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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_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\"\252\003\n\016DocumentSche" - + "ma\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" - + "\340A\002\022R\n\024property_definitions\030\003 \003(\01324.goog" - + "le.cloud.contentwarehouse.v1.PropertyDef" - + "inition\022\032\n\022document_is_folder\030\004 \001(\010\0224\n\013u" - + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022\023\n\013description\030\007" - + " \001(\t:~\352A{\n.contentwarehouse.googleapis.c" - + "om/DocumentSchema\022Iprojects/{project}/lo" - + "cations/{location}/documentSchemas/{docu" - + "ment_schema}\"\343\006\n\022PropertyDefinition\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\014 \001(\t\022\025\n\r" - + "is_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_metadata" - + "\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022T\n\024integer_t" - + "ype_options\030\007 \001(\01324.google.cloud.content" - + "warehouse.v1.IntegerTypeOptionsH\000\022P\n\022flo" - + "at_type_options\030\010 \001(\01322.google.cloud.con" - + "tentwarehouse.v1.FloatTypeOptionsH\000\022N\n\021t" - + "ext_type_options\030\t \001(\01321.google.cloud.co" - + "ntentwarehouse.v1.TextTypeOptionsH\000\022V\n\025p" - + "roperty_type_options\030\n \001(\01325.google.clou" - + "d.contentwarehouse.v1.PropertyTypeOption" - + "sH\000\022N\n\021enum_type_options\030\013 \001(\01321.google." - + "cloud.contentwarehouse.v1.EnumTypeOption" - + "sH\000\022W\n\026date_time_type_options\030\r \001(\01325.go" - + "ogle.cloud.contentwarehouse.v1.DateTimeT" - + "ypeOptionsH\000\022L\n\020map_type_options\030\017 \001(\01320" - + ".google.cloud.contentwarehouse.v1.MapTyp" - + "eOptionsH\000\022X\n\026timestamp_type_options\030\020 \001" - + "(\01326.google.cloud.contentwarehouse.v1.Ti" - + "mestampTypeOptionsH\000B\024\n\022value_type_optio" - + "ns\"\024\n\022IntegerTypeOptions\"\022\n\020FloatTypeOpt" - + "ions\"\021\n\017TextTypeOptions\"\025\n\023DateTimeTypeO" - + "ptions\"\020\n\016MapTypeOptions\"\026\n\024TimestampTyp" - + "eOptions\"n\n\023PropertyTypeOptions\022W\n\024prope" - + "rty_definitions\030\001 \003(\01324.google.cloud.con" - + "tentwarehouse.v1.PropertyDefinitionB\003\340A\002" - + "\"R\n\017EnumTypeOptions\022\034\n\017possible_values\030\001" - + " \003(\tB\003\340A\002\022!\n\031validation_check_disabled\030\002" - + " \001(\010B\217\001\n$com.google.cloud.contentwarehou" - + "se.v1B\023DocumentSchemaProtoP\001ZPgoogle.gol" - + "ang.org/genproto/googleapis/cloud/conten" - + "twarehouse/v1;contentwarehouseb\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", - "IntegerTypeOptions", - "FloatTypeOptions", - "TextTypeOptions", - "PropertyTypeOptions", - "EnumTypeOptions", - "DateTimeTypeOptions", - "MapTypeOptions", - "TimestampTypeOptions", - "ValueTypeOptions", - }); - 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 3edabc18c1ce..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\"\257\001\n\033CreateDocumentSch" - + "emaRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(cont" - + "entwarehouse.googleapis.com/Location\022N\n\017" - + "document_schema\030\002 \001(\01320.google.cloud.con" - + "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"`\n\030" - + "GetDocumentSchemaRequest\022D\n\004name\030\001 \001(\tB6" - + "\340A\002\372A0\n.contentwarehouse.googleapis.com/" - + "DocumentSchema\"\263\001\n\033UpdateDocumentSchemaR" - + "equest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.contentwar" - + "ehouse.googleapis.com/DocumentSchema\022N\n\017" - + "document_schema\030\002 \001(\01320.google.cloud.con" - + "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"c\n\033" - + "DeleteDocumentSchemaRequest\022D\n\004name\030\001 \001(" - + "\tB6\340A\002\372A0\n.contentwarehouse.googleapis.c" - + "om/DocumentSchema\"\205\001\n\032ListDocumentSchema" - + "sRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(conten" - + "twarehouse.googleapis.com/Location\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\033Li" - + "stDocumentSchemasResponse\022J\n\020document_sc" - + "hemas\030\001 \003(\01320.google.cloud.contentwareho" - + "use.v1.DocumentSchema\022\027\n\017next_page_token" - + "\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022\356\001\n\024Cre" - + "ateDocumentSchema\022=.google.cloud.content" - + "warehouse.v1.CreateDocumentSchemaRequest" - + "\0320.google.cloud.contentwarehouse.v1.Docu" - + "mentSchema\"e\202\323\344\223\002F\"3/v1/{parent=projects" - + "/*/locations/*}/documentSchemas:\017documen" - + "t_schema\332A\026parent,document_schema\022\336\001\n\024Up" - + "dateDocumentSchema\022=.google.cloud.conten" - + "twarehouse.v1.UpdateDocumentSchemaReques" - + "t\0320.google.cloud.contentwarehouse.v1.Doc" - + "umentSchema\"U\202\323\344\223\002823/v1/{name=projects/" - + "*/locations/*/documentSchemas/*}:\001*\332A\024na" - + "me,document_schema\022\305\001\n\021GetDocumentSchema" - + "\022:.google.cloud.contentwarehouse.v1.GetD" - + "ocumentSchemaRequest\0320.google.cloud.cont" - + "entwarehouse.v1.DocumentSchema\"B\202\323\344\223\0025\0223" - + "/v1/{name=projects/*/locations/*/documen" - + "tSchemas/*}\332A\004name\022\261\001\n\024DeleteDocumentSch" - + "ema\022=.google.cloud.contentwarehouse.v1.D" - + "eleteDocumentSchemaRequest\032\026.google.prot" - + "obuf.Empty\"B\202\323\344\223\0025*3/v1/{name=projects/*" - + "/locations/*/documentSchemas/*}\332A\004name\022\330" - + "\001\n\023ListDocumentSchemas\022<.google.cloud.co" - + "ntentwarehouse.v1.ListDocumentSchemasReq" - + "uest\032=.google.cloud.contentwarehouse.v1." - + "ListDocumentSchemasResponse\"D\202\323\344\223\0025\0223/v1" - + "/{parent=projects/*/locations/*}/documen" - + "tSchemas\332A\006parent\032S\312A\037contentwarehouse.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\226\001\n$com.google.cl" - + "oud.contentwarehouse.v1B\032DocumentSchemaS" - + "erviceProtoP\001ZPgoogle.golang.org/genprot" - + "o/googleapis/cloud/contentwarehouse/v1;c" - + "ontentwarehouseb\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 cb3cda5854be..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\033google/protobu" - + "f/empty.proto\"\354\001\n\026CreateDocumentResponse" - + "\022<\n\010document\030\001 \001(\0132*.google.cloud.conten" - + "twarehouse.v1.Document\022N\n\022rule_engine_ou" - + "tput\030\002 \001(\01322.google.cloud.contentwarehou" - + "se.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\013" - + "22.google.cloud.contentwarehouse.v1.Resp" - + "onseMetadata\"\354\001\n\026UpdateDocumentResponse\022" - + "<\n\010document\030\001 \001(\0132*.google.cloud.content" - + "warehouse.v1.Document\022N\n\022rule_engine_out" - + "put\030\002 \001(\01322.google.cloud.contentwarehous" - + "e.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\0132" - + "2.google.cloud.contentwarehouse.v1.Respo" - + "nseMetadata\"\243\001\n\010QAResult\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\"\374\003\n\027SearchDocumentsRes" - + "ponse\022f\n\022matching_documents\030\001 \003(\0132J.goog" - + "le.cloud.contentwarehouse.v1.SearchDocum" - + "entsResponse.MatchingDocument\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\022D\n\010me" - + "tadata\030\004 \001(\01322.google.cloud.contentwareh" - + "ouse.v1.ResponseMetadata\022W\n\027histogram_qu" - + "ery_results\030\006 \003(\01326.google.cloud.content" - + "warehouse.v1.HistogramQueryResult\032\254\001\n\020Ma" - + "tchingDocument\022<\n\010document\030\001 \001(\0132*.googl" - + "e.cloud.contentwarehouse.v1.Document\022\033\n\023" - + "search_text_snippet\030\002 \001(\t\022=\n\tqa_result\030\003" - + " \001(\0132*.google.cloud.contentwarehouse.v1." - + "QAResult\"\177\n\020FetchAclResponse\022%\n\006policy\030\001" - + " \001(\0132\025.google.iam.v1.Policy\022D\n\010metadata\030" - + "\002 \001(\01322.google.cloud.contentwarehouse.v1" - + ".ResponseMetadata\"}\n\016SetAclResponse\022%\n\006p" - + "olicy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010me" - + "tadata\030\002 \001(\01322.google.cloud.contentwareh" - + "ouse.v1.ResponseMetadata2\350\r\n\017DocumentSer" - + "vice\022\317\001\n\016CreateDocument\0227.google.cloud.c" - + "ontentwarehouse.v1.CreateDocumentRequest" - + "\0328.google.cloud.contentwarehouse.v1.Crea" - + "teDocumentResponse\"J\202\323\344\223\0022\"-/v1/{parent=" - + "projects/*/locations/*}/documents:\001*\332A\017p" - + "arent,document\022\371\001\n\013GetDocument\0224.google." - + "cloud.contentwarehouse.v1.GetDocumentReq" - + "uest\032*.google.cloud.contentwarehouse.v1." - + "Document\"\207\001\202\323\344\223\002z\"1/v1/{name=projects/*/" - + "locations/*/documents/*}:get:\001*ZB\"=/v1/{" - + "name=projects/*/locations/*/documents/re" - + "ferenceId/*}:get:\001*\332A\004name\022\216\002\n\016UpdateDoc" - + "ument\0227.google.cloud.contentwarehouse.v1" - + ".UpdateDocumentRequest\0328.google.cloud.co" - + "ntentwarehouse.v1.UpdateDocumentResponse" - + "\"\210\001\202\323\344\223\002r2-/v1/{name=projects/*/location" - + "s/*/documents/*}:\001*Z>29/v1/{name=project" - + "s/*/locations/*/documents/referenceId/*}" - + ":\001*\332A\rname,document\022\362\001\n\016DeleteDocument\0227" - + ".google.cloud.contentwarehouse.v1.Delete" - + "DocumentRequest\032\026.google.protobuf.Empty\"" - + "\216\001\202\323\344\223\002\200\001\"4/v1/{name=projects/*/location" - + "s/*/documents/*}:delete:\001*ZE\"@/v1/{name=" - + "projects/*/locations/*/documents/referen" - + "ceId/*}:delete:\001*\332A\004name\022\320\001\n\017SearchDocum" - + "ents\0228.google.cloud.contentwarehouse.v1." - + "SearchDocumentsRequest\0329.google.cloud.co" - + "ntentwarehouse.v1.SearchDocumentsRespons" - + "e\"H\202\323\344\223\0029\"4/v1/{parent=projects/*/locati" - + "ons/*}/documents:search:\001*\332A\006parent\022\354\001\n\010" - + "FetchAcl\0221.google.cloud.contentwarehouse" - + ".v1.FetchAclRequest\0322.google.cloud.conte" - + "ntwarehouse.v1.FetchAclResponse\"y\202\323\344\223\002h\"" - + ":/v1/{resource=projects/*/locations/*/do" - + "cuments/*}:fetchAcl:\001*Z\'\"\"/v1/{resource=" - + "projects/*}:fetchAcl:\001*\332A\010resource\022\351\001\n\006S" - + "etAcl\022/.google.cloud.contentwarehouse.v1" - + ".SetAclRequest\0320.google.cloud.contentwar" - + "ehouse.v1.SetAclResponse\"|\202\323\344\223\002d\"8/v1/{r" - + "esource=projects/*/locations/*/documents" - + "/*}:setAcl:\001*Z%\" /v1/{resource=projects/" - + "*}:setAcl:\001*\332A\017resource,policy\032S\312A\037conte" - + "ntwarehouse.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\220\001\n$" - + "com.google.cloud.contentwarehouse.v1B\024Do" - + "cumentServiceProtoP\001ZPgoogle.golang.org/" - + "genproto/googleapis/cloud/contentwarehou" - + "se/v1;contentwarehouseb\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.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", - }); - 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", - }); - 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.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 32cccbe95280..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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_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\"\234\003\n\025Cr" - + "eateDocumentRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" - + "\372A*\n(contentwarehouse.googleapis.com/Loc" - + "ation\022A\n\010document\030\002 \001(\0132*.google.cloud.c" - + "ontentwarehouse.v1.DocumentB\003\340A\002\022K\n\020requ" - + "est_metadata\030\003 \001(\01321.google.cloud.conten" - + "twarehouse.v1.RequestMetadata\022%\n\006policy\030" - + "\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_ai" - + "_document_option\030\005 \001(\01327.google.cloud.co" - + "ntentwarehouse.v1.CloudAIDocumentOption\022" - + "/\n\013create_mask\030\006 \001(\0132\032.google.protobuf.F" - + "ieldMask\"\241\001\n\022GetDocumentRequest\022>\n\004name\030" - + "\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.googleap" - + "is.com/Document\022K\n\020request_metadata\030\002 \001(" - + "\01321.google.cloud.contentwarehouse.v1.Req" - + "uestMetadata\"\213\003\n\025UpdateDocumentRequest\022>" - + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.g" - + "oogleapis.com/Document\022A\n\010document\030\002 \001(\013" - + "2*.google.cloud.contentwarehouse.v1.Docu" - + "mentB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" - + "ogle.cloud.contentwarehouse.v1.RequestMe" - + "tadata\022Y\n\030cloud_ai_document_option\030\005 \001(\013" - + "27.google.cloud.contentwarehouse.v1.Clou" - + "dAIDocumentOption\022G\n\016update_options\030\006 \001(" - + "\0132/.google.cloud.contentwarehouse.v1.Upd" - + "ateOptions\"\244\001\n\025DeleteDocumentRequest\022>\n\004" - + "name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.goo" - + "gleapis.com/Document\022K\n\020request_metadata" - + "\030\002 \001(\01321.google.cloud.contentwarehouse.v" - + "1.RequestMetadata\"\271\003\n\026SearchDocumentsReq" - + "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwar" - + "ehouse.googleapis.com/Location\022K\n\020reques" - + "t_metadata\030\003 \001(\01321.google.cloud.contentw" - + "arehouse.v1.RequestMetadata\022G\n\016document_" - + "query\030\004 \001(\0132/.google.cloud.contentwareho" - + "use.v1.DocumentQuery\022\016\n\006offset\030\005 \001(\005\022\021\n\t" - + "page_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001(\t\022\020\n\010o" - + "rder_by\030\010 \001(\t\022K\n\021histogram_queries\030\t \003(\013" - + "20.google.cloud.contentwarehouse.v1.Hist" - + "ogramQuery\022\032\n\022require_total_size\030\n \001(\010\022\025" - + "\n\rqa_size_limit\030\013 \001(\005\"\214\001\n\017FetchAclReques" - + "t\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022K\n\020request_meta" - + "data\030\002 \001(\01321.google.cloud.contentwarehou" - + "se.v1.RequestMetadata\022\025\n\rproject_owner\030\003" - + " \001(\010\"\266\001\n\rSetAclRequest\022\025\n\010resource\030\001 \001(\t" - + "B\003\340A\002\022*\n\006policy\030\002 \001(\0132\025.google.iam.v1.Po" - + "licyB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" - + "ogle.cloud.contentwarehouse.v1.RequestMe" - + "tadata\022\025\n\rproject_owner\030\004 \001(\010B\227\001\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\033Document" - + "ServiceRequestProtoP\001ZPgoogle.golang.org" - + "/genproto/googleapis/cloud/contentwareho" - + "use/v1;contentwarehouseb\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", - "QaSizeLimit", - }); - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - 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(7); - 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 394ff4784780..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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; - - 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\"\245\003\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\025\n\rquery_conte" - + "xt\030\n \003(\t\022\037\n\027document_creator_filter\030\013 \003(" - + "\t\"\316\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\"I\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\"v\n\016PropertyFilter\022Q\n\024document" - + "_schema_name\030\001 \001(\tB3\372A0\n.contentwarehous" - + "e.googleapis.com/DocumentSchema\022\021\n\tcondi" - + "tion\030\002 \001(\t\"\250\001\n\016FileTypeFilter\022L\n\tfile_ty" - + "pe\030\001 \001(\01629.google.cloud.contentwarehouse" - + ".v1.FileTypeFilter.FileType\"H\n\010FileType\022" - + "\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006F" - + "OLDER\020\002\022\014\n\010DOCUMENT\020\003B\210\001\n$com.google.clo" - + "ud.contentwarehouse.v1B\014FiltersProtoP\001ZP" - + "google.golang.org/genproto/googleapis/cl" - + "oud/contentwarehouse/v1;contentwarehouse" - + "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", - "QueryContext", - "DocumentCreatorFilter", - }); - 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", - }); - 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 a722cfa80710..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 b8225b49517c..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 d08e79caf0b0..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 a89bccabfe12..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 90e8fd1c7ee2..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\"\250\001\n\016HistogramQu" - + "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" - + "precise_result_size\030\002 \001(\010\022X\n\007filters\030\003 \001" - + "(\0132B.google.cloud.contentwarehouse.v1.Hi" - + "stogramQueryPropertyNameFilterB\003\340A\001\"\272\002\n " - + "HistogramQueryPropertyNameFilter\022M\n\020docu" - + "ment_schemas\030\001 \003(\tB3\372A0\n.contentwarehous" - + "e.googleapis.com/DocumentSchema\022\026\n\016prope" - + "rty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.google" - + ".cloud.contentwarehouse.v1.HistogramQuer" - + "yPropertyNameFilter.HistogramYAxis\"L\n\016Hi" - + "stogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMENT" - + "\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024His" - + "togramQueryResult\022\027\n\017histogram_query\030\001 \001" - + "(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.con" - + "tentwarehouse.v1.HistogramQueryResult.Hi" - + "stogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\212\001\n$com.google.cl" - + "oud.contentwarehouse.v1B\016HistogramProtoP" - + "\001ZPgoogle.golang.org/genproto/googleapis" - + "/cloud/contentwarehouse/v1;contentwareho" - + "useb\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 630818e60f7c..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 71c51a35976d..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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/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 8d10df64df05..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 ce3cb14bb1f8..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java +++ /dev/null @@ -1,372 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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}\"" - + "\376\001\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\"8" - + "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020" - + "\001\022\r\n\tON_UPDATE\020\004\"\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\213\001\n$com.google.cloud.conte" - + "ntwarehouse.v1B\017RuleEngineProtoP\001ZPgoogl" - + "e.golang.org/genproto/googleapis/cloud/c" - + "ontentwarehouse/v1;contentwarehouseb\006pro" - + "to3" - }; - 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 6a35760ffed0..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\202\323\344\223\0028\",/v1/" - + "{parent=projects/*/locations/*}/ruleSets" - + ":\010rule_set\332A\017parent,rule_set\022\251\001\n\nGetRule" - + "Set\0223.google.cloud.contentwarehouse.v1.G" - + "etRuleSetRequest\032).google.cloud.contentw" - + "arehouse.v1.RuleSet\";\202\323\344\223\002.\022,/v1/{name=p" - + "rojects/*/locations/*/ruleSets/*}\332A\004name" - + "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" - + "twarehouse.v1.UpdateRuleSetRequest\032).goo" - + "gle.cloud.contentwarehouse.v1.RuleSet\"G\202" - + "\323\344\223\00212,/v1/{name=projects/*/locations/*/" - + "ruleSets/*}:\001*\332A\rname,rule_set\022\234\001\n\rDelet" - + "eRuleSet\0226.google.cloud.contentwarehouse" - + ".v1.DeleteRuleSetRequest\032\026.google.protob" - + "uf.Empty\";\202\323\344\223\002.*,/v1/{name=projects/*/l" - + "ocations/*/ruleSets/*}\332A\004name\022\274\001\n\014ListRu" - + "leSets\0225.google.cloud.contentwarehouse.v" - + "1.ListRuleSetsRequest\0326.google.cloud.con" - + "tentwarehouse.v1.ListRuleSetsResponse\"=\202" - + "\323\344\223\002.\022,/v1/{parent=projects/*/locations/" - + "*}/ruleSets\332A\006parent\032S\312A\037contentwarehous" - + "e.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\217\001\n$com.google" - + ".cloud.contentwarehouse.v1B\023RuleSetServi" - + "ceProtoP\001ZPgoogle.golang.org/genproto/go" - + "ogleapis/cloud/contentwarehouse/v1;conte" - + "ntwarehouseb\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 647148239e93..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\"\232\001\n\024CreateRuleSetRequest\022@\n\006p" - + "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" - + "ogleapis.com/Location\022@\n\010rule_set\030\002 \001(\0132" - + ").google.cloud.contentwarehouse.v1.RuleS" - + "etB\003\340A\002\"R\n\021GetRuleSetRequest\022=\n\004name\030\001 \001" - + "(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis." - + "com/RuleSet\"\227\001\n\024UpdateRuleSetRequest\022=\n\004" - + "name\030\001 \001(\tB/\340A\002\372A)\n\'contentwarehouse.goo" - + "gleapis.com/RuleSet\022@\n\010rule_set\030\002 \001(\0132)." - + "google.cloud.contentwarehouse.v1.RuleSet" - + "B\003\340A\002\"U\n\024DeleteRuleSetRequest\022=\n\004name\030\001 " - + "\001(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis" - + ".com/RuleSet\"~\n\023ListRuleSetsRequest\022@\n\006p" - + "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" - + "ogleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleSetsResp" - + "onse\022<\n\trule_sets\030\001 \003(\0132).google.cloud.c" - + "ontentwarehouse.v1.RuleSet\022\027\n\017next_page_" - + "token\030\002 \001(\tB\226\001\n$com.google.cloud.content" - + "warehouse.v1B\032RuleSetServiceRequestProto" - + "P\001ZPgoogle.golang.org/genproto/googleapi" - + "s/cloud/contentwarehouse/v1;contentwareh" - + "ouseb\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/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 21fee36b85f7..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\213\001\n$com.google.cloud.contentwar" - + "ehouse.v1B\017SynonymSetProtoP\001ZPgoogle.gol" - + "ang.org/genproto/googleapis/cloud/conten" - + "twarehouse/v1;contentwarehouseb\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 b859b78665c6..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\202\323\344\223\002>\"//v1/{parent=projects/*/loca" - + "tions/*}/synonymSets:\013synonym_set\332A\022pare" - + "nt,synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" - + "e.cloud.contentwarehouse.v1.GetSynonymSe" - + "tRequest\032,.google.cloud.contentwarehouse" - + ".v1.SynonymSet\">\202\323\344\223\0021\022//v1/{name=projec" - + "ts/*/locations/*/synonymSets/*}\332A\004name\022\324" - + "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" - + "ntwarehouse.v1.UpdateSynonymSetRequest\032," - + ".google.cloud.contentwarehouse.v1.Synony" - + "mSet\"W\202\323\344\223\002>2//v1/{name=projects/*/locat" - + "ions/*/synonymSets/*}:\013synonym_set\332A\020nam" - + "e,synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" - + "gle.cloud.contentwarehouse.v1.DeleteSyno" - + "nymSetRequest\032\026.google.protobuf.Empty\">\202" - + "\323\344\223\0021*//v1/{name=projects/*/locations/*/" - + "synonymSets/*}\332A\004name\022\310\001\n\017ListSynonymSet" - + "s\0228.google.cloud.contentwarehouse.v1.Lis" - + "tSynonymSetsRequest\0329.google.cloud.conte" - + "ntwarehouse.v1.ListSynonymSetsResponse\"@" - + "\202\323\344\223\0021\022//v1/{parent=projects/*/locations" - + "/*}/synonymSets\332A\006parent\032S\312A\037contentware" - + "house.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\222\001\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\026SynonymS" - + "etServiceProtoP\001ZPgoogle.golang.org/genp" - + "roto/googleapis/cloud/contentwarehouse/v" - + "1;contentwarehouseb\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 dc632734caf2..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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\"\243\001\n\027CreateSynonymSetRequest" - + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehou" - + "se.googleapis.com/Location\022F\n\013synonym_se" - + "t\030\002 \001(\0132,.google.cloud.contentwarehouse." - + "v1.SynonymSetB\003\340A\002\"X\n\024GetSynonymSetReque" - + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*contentwarehou" - + "se.googleapis.com/SynonymSet\"\201\001\n\026ListSyn" - + "onymSetsRequest\022@\n\006parent\030\001 \001(\tB0\340A\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" - + "\"v\n\027ListSynonymSetsResponse\022B\n\014synonym_s" - + "ets\030\001 \003(\0132,.google.cloud.contentwarehous" - + "e.v1.SynonymSet\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\243\001\n\027UpdateSynonymSetRequest\022@\n\004name\030\001 \001" - + "(\tB2\340A\002\372A,\n*contentwarehouse.googleapis." - + "com/SynonymSet\022F\n\013synonym_set\030\002 \001(\0132,.go" - + "ogle.cloud.contentwarehouse.v1.SynonymSe" - + "tB\003\340A\002\"[\n\027DeleteSynonymSetRequest\022@\n\004nam" - + "e\030\001 \001(\tB2\340A\002\372A,\n*contentwarehouse.google" - + "apis.com/SynonymSetB\231\001\n$com.google.cloud" - + ".contentwarehouse.v1B\035SynonymSetServiceR" - + "equestProtoP\001ZPgoogle.golang.org/genprot" - + "o/googleapis/cloud/contentwarehouse/v1;c" - + "ontentwarehouseb\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 6f629a72fce1..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 52332ab5285b..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 33462cba9528..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 95ee8c105206..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 db3580b5d57b..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 9c9afff269cf..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/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 5543c70d3ecf..b78933d672a3 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 bef66257a33e..dd85eea60845 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 e9621ab7ff4c..73631898bfd3 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/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 3d1ee0ff4539..a44cd5d4b669 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 313df7c2031c..bb01f6c8a8df 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 1cdab48d7d71..6f4bf7cf4cfe 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 7c892e56e803..8911a8f105e1 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 3acf74248912..0ab65c48655f 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 @@ -43,6 +43,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-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 ab748d4c6576..a964fffa43b4 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 52a65adfe2b8..515299985c45 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/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/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/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/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/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..227f2493ebaa --- /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,566 @@ +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 static abstract class DocumentLinkServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedTargetsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedSourcesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentLinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentLinkMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_CREATE_DOCUMENT_LINK))) + .addMethod( + getDeleteDocumentLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DOCUMENT_LINK))) + .build(); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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 DocumentLinkServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DocumentLinkServiceImplBase 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(); + } + } + } + + 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..a65772dff081 --- /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,679 @@ +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 static abstract class DocumentSchemaServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a document schema.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentSchemaMethod(), responseObserver); + } + + /** + *
+     * Lists document schemas.
+     * 
+ */ + public void listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentSchemasMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_GET_DOCUMENT_SCHEMA))) + .addMethod( + getDeleteDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty>( + this, 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>( + this, METHODID_LIST_DOCUMENT_SCHEMAS))) + .build(); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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 DocumentSchemaServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DocumentSchemaServiceImplBase 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(); + } + } + } + + 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..9876dfb7ef11 --- /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,843 @@ +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 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 static abstract class DocumentServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a document.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchDocumentsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_CREATE_DOCUMENT))) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document>( + this, METHODID_GET_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( + this, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DOCUMENT))) + .addMethod( + getSearchDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( + this, METHODID_SEARCH_DOCUMENTS))) + .addMethod( + getFetchAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse>( + this, METHODID_FETCH_ACL))) + .addMethod( + getSetAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse>( + this, METHODID_SET_ACL))) + .build(); + } + } + + /** + *
+   * 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); + } + + /** + *
+     * 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); + } + } + + /** + *
+   * 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); + } + + /** + *
+     * 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); + } + } + + /** + *
+   * 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); + } + + /** + *
+     * 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_FETCH_ACL = 5; + private static final int METHODID_SET_ACL = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DocumentServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DocumentServiceImplBase 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_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(); + } + } + } + + 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(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 new file mode 100644 index 000000000000..91eab2126efb --- /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,651 @@ +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 static abstract class RuleSetServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a ruleset.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuleSetMethod(), responseObserver); + } + + /** + *
+     * Lists rulesets.
+     * 
+ */ + public void listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuleSetsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_UPDATE_RULE_SET))) + .addMethod( + getDeleteRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, + com.google.protobuf.Empty>( + this, 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>( + this, METHODID_LIST_RULE_SETS))) + .build(); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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 RuleSetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(RuleSetServiceImplBase 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(); + } + } + } + + 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..a8a2f934476f --- /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,675 @@ +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 static abstract class SynonymSetServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateSynonymSetMethod(), 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.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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSynonymSetsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_UPDATE_SYNONYM_SET))) + .addMethod( + getDeleteSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, + com.google.protobuf.Empty>( + this, 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>( + this, METHODID_LIST_SYNONYM_SETS))) + .build(); + } + } + + /** + *
+   * 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 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 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 SynonymSetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SynonymSetServiceImplBase 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(); + } + } + } + + 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 68% 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 277c438bf06c..3ec6daa66819 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for access control list management
  * operations.
@@ -28,61 +11,58 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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 { - /** UNKNOWN = 0; */ + public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ UNKNOWN(0), /** - * - * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -91,8 +71,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ ADD_POLICY_BINDING(1), /** - * - * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -101,8 +79,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ REMOVE_POLICY_BINDING(2), /** - * - * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -113,11 +89,11 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** UNKNOWN = 0; */ + /** + * UNKNOWN = 0; + */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -126,8 +102,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.
      * 
@@ -136,8 +110,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
      * 
@@ -146,6 +118,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( @@ -170,53 +143,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; @@ -236,49 +206,33 @@ private OperationType(int value) { public static final int OPERATION_TYPE_FIELD_NUMBER = 1; private int 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 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf( - operationType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf(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
@@ -286,7 +240,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 @@ -294,8 +247,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
@@ -303,7 +254,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2; - * * @return The policy. */ @java.lang.Override @@ -311,8 +261,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
@@ -327,7 +275,6 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -339,10 +286,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) {
@@ -357,13 +303,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;
@@ -373,18 +319,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;
@@ -409,104 +355,96 @@ 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.
@@ -514,32 +452,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();
@@ -555,9 +494,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
@@ -576,8 +515,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.AccessControlAction result = new com.google.cloud.contentwarehouse.v1.AccessControlAction(this);
       result.operationType_ = operationType_;
       if (policyBuilder_ == null) {
         result.policy_ = policy_;
@@ -592,39 +530,38 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction 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.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;
@@ -632,8 +569,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());
       }
@@ -666,25 +602,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                operationType_ = input.readEnum();
-
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              operationType_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getPolicyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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) {
@@ -697,100 +632,73 @@ public Builder mergeFrom(
 
     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. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); 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() { + public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf( - operationType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf(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(); } - + operationType_ = value.getNumber(); onChanged(); 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() { - + operationType_ = 0; onChanged(); return this; @@ -798,13 +706,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
@@ -812,15 +715,12 @@ public Builder clearOperationType() {
      * 
* * .google.iam.v1.Policy policy = 2; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || 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
@@ -828,7 +728,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -839,8 +738,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
@@ -863,8 +760,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
@@ -873,7 +768,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();
         onChanged();
@@ -884,8 +780,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
@@ -897,7 +791,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
         if (policy_ != null) {
-          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+          policy_ =
+            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
         } else {
           policy_ = value;
         }
@@ -909,8 +804,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
@@ -931,8 +824,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
@@ -942,13 +833,11 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2;
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+      
       onChanged();
       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
@@ -961,12 +850,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
@@ -976,23 +864,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);
     }
 
@@ -1002,12 +888,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();
   }
@@ -1016,27 +902,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;
@@ -1051,4 +937,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 3c634e06dc44..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 c6054296dee2..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 72% 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 dbbe228c6b5f..eb84b2bd6225 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,78 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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), @@ -83,7 +62,6 @@ public enum ActionCase DELETE_DOCUMENT_ACTION(10), ACTION_NOT_SET(0); private final int value; - private ActionCase(int value) { this.value = value; } @@ -99,47 +77,36 @@ 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; private volatile java.lang.Object actionId_; /** - * - * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; - * * @return The actionId. */ @java.lang.Override @@ -148,29 +115,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 { @@ -180,14 +147,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 @@ -195,26 +159,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.
    * 
@@ -222,24 +181,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 @@ -247,26 +202,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.
    * 
@@ -274,24 +224,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 @@ -299,26 +245,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.
    * 
@@ -328,21 +269,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 @@ -350,26 +288,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.
    * 
@@ -379,21 +312,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 @@ -401,26 +331,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.
    * 
@@ -430,22 +355,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 @@ -453,54 +374,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 @@ -508,45 +417,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; @@ -558,7 +458,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -596,39 +497,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; @@ -638,37 +532,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: @@ -723,136 +624,130 @@ 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(); @@ -885,9 +780,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 @@ -906,8 +801,7 @@ 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); + com.google.cloud.contentwarehouse.v1.Action result = new com.google.cloud.contentwarehouse.v1.Action(this); result.actionId_ = actionId_; if (actionCase_ == 2) { if (accessControlBuilder_ == null) { @@ -967,39 +861,38 @@ public com.google.cloud.contentwarehouse.v1.Action 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.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; @@ -1013,45 +906,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(); @@ -1079,63 +964,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - actionId_ = input.readStringRequireUtf8(); + case 10: { + actionId_ = input.readStringRequireUtf8(); - 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: + 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) { @@ -1145,12 +1033,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() { @@ -1160,22 +1048,21 @@ public Builder clearAction() { return this; } + 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; @@ -1184,21 +1071,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 { @@ -1206,80 +1092,67 @@ 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) { + public Builder setActionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionId_ = value; onChanged(); return this; } /** - * - * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; - * * @return This builder for chaining. */ public Builder clearActionId() { - + actionId_ = getDefaultInstance().getActionId(); onChanged(); 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) { + public Builder setActionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionId_ = value; onChanged(); return this; } 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 @@ -1287,14 +1160,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 @@ -1312,16 +1182,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(); @@ -1335,8 +1202,6 @@ public Builder setAccessControl( return this; } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1355,25 +1220,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; } @@ -1389,8 +1247,6 @@ public Builder mergeAccessControl( return this; } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1414,21 +1270,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.
      * 
@@ -1436,8 +1287,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 { @@ -1448,8 +1298,6 @@ public Builder clearAccessControl() { } } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1457,44 +1305,32 @@ 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()); action_ = null; } actionCase_ = 2; - onChanged(); - ; + onChanged();; return accessControlBuilder_; } 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 @@ -1502,14 +1338,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 @@ -1527,16 +1360,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(); @@ -1550,8 +1380,6 @@ public Builder setDataValidation( return this; } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1570,25 +1398,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; } @@ -1604,8 +1425,6 @@ public Builder mergeDataValidation( return this; } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1629,21 +1448,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.
      * 
@@ -1651,8 +1465,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 { @@ -1663,8 +1476,6 @@ public Builder clearDataValidation() { } } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1672,44 +1483,32 @@ 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()); action_ = null; } actionCase_ = 3; - onChanged(); - ; + onChanged();; return dataValidationBuilder_; } 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 @@ -1717,14 +1516,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 @@ -1742,8 +1538,6 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { } } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1764,8 +1558,6 @@ public Builder setDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateActi return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1784,8 +1576,6 @@ public Builder setDataUpdate( return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1794,14 +1584,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; } @@ -1817,8 +1603,6 @@ public Builder mergeDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateAc return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1842,8 +1626,6 @@ public Builder clearDataUpdate() { return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1854,8 +1636,6 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder getDataUpda return getDataUpdateFieldBuilder().getBuilder(); } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1874,8 +1654,6 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd } } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1883,44 +1661,32 @@ 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()); action_ = null; } actionCase_ = 4; - onChanged(); - ; + onChanged();; return dataUpdateBuilder_; } 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 @@ -1928,14 +1694,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 @@ -1953,8 +1716,6 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { } } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -1975,8 +1736,6 @@ public Builder setAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolderAc return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -1995,8 +1754,6 @@ public Builder setAddToFolder( return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2005,14 +1762,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; } @@ -2028,8 +1781,6 @@ public Builder mergeAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolder return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2053,8 +1804,6 @@ public Builder clearAddToFolder() { return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2065,8 +1814,6 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo return getAddToFolderFieldBuilder().getBuilder(); } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2074,8 +1821,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 { @@ -2086,8 +1832,6 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo } } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2095,44 +1839,32 @@ 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()); action_ = null; } actionCase_ = 5; - onChanged(); - ; + onChanged();; return addToFolderBuilder_; } 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 @@ -2140,14 +1872,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 @@ -2165,8 +1894,6 @@ public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { } } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2187,8 +1914,6 @@ public Builder setPublishToPubSub(com.google.cloud.contentwarehouse.v1.PublishAc return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2207,8 +1932,6 @@ public Builder setPublishToPubSub( return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2217,13 +1940,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; } @@ -2239,8 +1959,6 @@ public Builder mergePublishToPubSub(com.google.cloud.contentwarehouse.v1.Publish return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2264,8 +1982,6 @@ public Builder clearPublishToPubSub() { return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2276,8 +1992,6 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu return getPublishToPubSubFieldBuilder().getBuilder(); } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2285,8 +1999,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 { @@ -2297,8 +2010,6 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu } } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2306,45 +2017,32 @@ 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()); action_ = null; } actionCase_ = 6; - onChanged(); - ; + onChanged();; return publishToPubSubBuilder_; } 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 @@ -2352,15 +2050,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 @@ -2378,17 +2072,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(); @@ -2402,14 +2092,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) { @@ -2423,27 +2110,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; } @@ -2459,14 +2137,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) { @@ -2485,32 +2160,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 { @@ -2521,56 +2188,39 @@ 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()); action_ = null; } actionCase_ = 9; - onChanged(); - ; + onChanged();; return removeFromFolderActionBuilder_; } 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 @@ -2578,15 +2228,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 @@ -2604,17 +2250,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(); @@ -2628,14 +2270,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) { @@ -2649,26 +2288,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; } @@ -2684,14 +2315,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) { @@ -2710,32 +2338,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 { @@ -2746,42 +2366,33 @@ 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()); action_ = null; } actionCase_ = 10; - onChanged(); - ; + 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); } @@ -2791,12 +2402,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(); } @@ -2805,27 +2416,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; @@ -2840,4 +2451,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 70% 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 a78ce70d5eec..c509a8c166e4 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List ruleActionsPairs_; /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -79,13 +58,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.
    * 
@@ -93,13 +69,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.
    * 
@@ -111,8 +85,6 @@ public int getRuleActionsPairsCount() { return ruleActionsPairs_.size(); } /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -124,8 +96,6 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs( return ruleActionsPairs_.get(index); } /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -139,7 +109,6 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -165,7 +135,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; @@ -175,15 +146,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; } @@ -205,136 +176,129 @@ 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(); @@ -349,9 +313,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 @@ -370,8 +334,7 @@ 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); int from_bitField0_ = bitField0_; if (ruleActionsPairsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -390,39 +353,38 @@ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput 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.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; @@ -430,8 +392,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()) { @@ -450,10 +411,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_); } @@ -485,27 +445,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) { @@ -515,39 +473,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 { @@ -555,14 +502,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) { @@ -572,14 +516,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) { @@ -589,14 +530,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) { @@ -613,14 +551,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) { @@ -634,14 +569,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) { @@ -657,14 +589,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) { @@ -681,14 +610,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) { @@ -702,14 +628,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) { @@ -723,20 +646,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); @@ -744,14 +665,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) { @@ -764,14 +682,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) { @@ -784,49 +699,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 { @@ -834,62 +739,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(), @@ -898,9 +786,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); } @@ -910,12 +798,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(); } @@ -924,27 +812,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; @@ -959,4 +847,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 6da3d2c540f5..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 4acbd64d487b..25d46faf9c1f 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); public 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 68% 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 1841ded02cff..f22cbfa6e589 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,45 +27,43 @@ private ActionOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ActionOutput(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 { - /** UNKNOWN = 0; */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ UNKNOWN(0), /** - * - * *
      * State indicating action executed successfully.
      * 
@@ -92,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_SUCCEEDED(1), /** - * - * *
      * State indicating action failed.
      * 
@@ -102,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_FAILED(2), /** - * - * *
      * State indicating action timed out.
      * 
@@ -112,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_TIMED_OUT(3), /** - * - * *
      * State indicating action is pending.
      * 
@@ -124,11 +98,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** UNKNOWN = 0; */ + /** + * UNKNOWN = 0; + */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * State indicating action executed successfully.
      * 
@@ -137,8 +111,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_SUCCEEDED_VALUE = 1; /** - * - * *
      * State indicating action failed.
      * 
@@ -147,8 +119,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_FAILED_VALUE = 2; /** - * - * *
      * State indicating action timed out.
      * 
@@ -157,8 +127,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_TIMED_OUT_VALUE = 3; /** - * - * *
      * State indicating action is pending.
      * 
@@ -167,6 +135,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( @@ -191,55 +160,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; @@ -259,14 +224,11 @@ private State(int value) { public static final int ACTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object actionId_; /** - * - * *
    * ID of the action.
    * 
* * string action_id = 1; - * * @return The actionId. */ @java.lang.Override @@ -275,29 +237,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 { @@ -308,52 +270,38 @@ public com.google.protobuf.ByteString getActionIdBytes() { public static final int ACTION_STATE_FIELD_NUMBER = 2; private int actionState_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = - com.google.cloud.contentwarehouse.v1.ActionOutput.State.valueOf(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.valueOf(actionState_); + return result == null ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED : result; } public static final int OUTPUT_MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object outputMessage_; /** - * - * *
    * Action execution output message.
    * 
* * string output_message = 3; - * * @return The outputMessage. */ @java.lang.Override @@ -362,29 +310,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 { @@ -393,7 +341,6 @@ public com.google.protobuf.ByteString getOutputMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,12 +352,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_)) { @@ -428,9 +375,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_); @@ -443,17 +390,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; } @@ -477,135 +425,129 @@ 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(); @@ -619,9 +561,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 @@ -640,8 +582,7 @@ 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); + com.google.cloud.contentwarehouse.v1.ActionOutput result = new com.google.cloud.contentwarehouse.v1.ActionOutput(this); result.actionId_ = actionId_; result.actionState_ = actionState_; result.outputMessage_ = outputMessage_; @@ -653,39 +594,38 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput 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.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; @@ -693,8 +633,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_; onChanged(); @@ -732,31 +671,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - actionId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - actionState_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - outputMessage_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + actionId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + actionState_ = input.readEnum(); + + break; + } // case 16 + case 26: { + outputMessage_ = input.readStringRequireUtf8(); + + 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) { @@ -769,20 +704,18 @@ public Builder mergeFrom( 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; @@ -791,21 +724,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 { @@ -813,61 +745,54 @@ 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) { + public Builder setActionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionId_ = value; onChanged(); return this; } /** - * - * *
      * ID of the action.
      * 
* * string action_id = 1; - * * @return This builder for chaining. */ public Builder clearActionId() { - + actionId_ = getDefaultInstance().getActionId(); onChanged(); 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) { + public Builder setActionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionId_ = value; onChanged(); return this; @@ -875,67 +800,51 @@ 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. */ public Builder setActionStateValue(int value) { - + actionState_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = - com.google.cloud.contentwarehouse.v1.ActionOutput.State.valueOf(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.valueOf(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. */ @@ -943,24 +852,21 @@ public Builder setActionState(com.google.cloud.contentwarehouse.v1.ActionOutput. if (value == null) { throw new NullPointerException(); } - + actionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return This builder for chaining. */ public Builder clearActionState() { - + actionState_ = 0; onChanged(); return this; @@ -968,20 +874,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; @@ -990,21 +894,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 { @@ -1012,68 +915,61 @@ 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) { + public Builder setOutputMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputMessage_ = value; onChanged(); return this; } /** - * - * *
      * Action execution output message.
      * 
* * string output_message = 3; - * * @return This builder for chaining. */ public Builder clearOutputMessage() { - + outputMessage_ = getDefaultInstance().getOutputMessage(); onChanged(); 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) { + public Builder setOutputMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputMessage_ = 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); } @@ -1083,12 +979,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(); } @@ -1097,27 +993,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; @@ -1132,4 +1028,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 d3be73972ce0..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 0620292bd4c5..f33cd000b429 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AddToFolderAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private com.google.protobuf.LazyStringList folders_; /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -79,15 +58,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:
@@ -95,15 +72,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:
@@ -111,7 +85,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. */ @@ -119,8 +92,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:
@@ -128,16 +99,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; @@ -149,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -178,15 +149,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; } @@ -208,136 +179,129 @@ 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(); @@ -347,9 +311,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_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 @@ -368,8 +332,7 @@ 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); + com.google.cloud.contentwarehouse.v1.AddToFolderAction result = new com.google.cloud.contentwarehouse.v1.AddToFolderAction(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { folders_ = folders_.getUnmodifiableView(); @@ -384,39 +347,38 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction 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.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; @@ -424,8 +386,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_; @@ -462,20 +423,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) { @@ -485,21 +444,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList folders_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList folders_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -507,15 +461,13 @@ 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() { return folders_.getUnmodifiableView(); } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -523,15 +475,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:
@@ -539,7 +488,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. */ @@ -547,8 +495,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:
@@ -556,16 +502,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:
@@ -573,23 +517,21 @@ 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) { + public Builder setFolders( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -597,22 +539,20 @@ 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) { + public Builder addFolders( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -620,19 +560,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -640,7 +579,6 @@ public Builder addAllFolders(java.lang.Iterable values) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearFolders() { @@ -650,8 +588,6 @@ public Builder clearFolders() { return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -659,23 +595,23 @@ 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) { + public Builder addFoldersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +621,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(); } @@ -699,27 +635,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; @@ -734,4 +670,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 b9e79c06472c..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..5a0496eb2b52 --- /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,70 @@ +// 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\234\001\n$com.google.cloud.c" + + "ontentwarehouse.v1B AsyncDocumentService" + + "RequestProtoP\001ZPgoogle.golang.org/genpro" + + "to/googleapis/cloud/contentwarehouse/v1;" + + "contentwarehouseb\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 1d8856cb5d1b..525c3b887abb 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,92 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
    * Whether to convert all the entities to properties.
    * 
* * bool enable_entities_conversions = 1; - * * @return The enableEntitiesConversions. */ @java.lang.Override @@ -95,23 +75,21 @@ 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, - ""); - } - - private com.google.protobuf.MapField - customizedEntitiesPropertiesConversions_; - + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customizedEntitiesPropertiesConversions_; private com.google.protobuf.MapField - internalGetCustomizedEntitiesPropertiesConversions() { + internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); @@ -123,31 +101,28 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
* * 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.
    * 
@@ -155,13 +130,11 @@ 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.
    * 
@@ -169,18 +142,16 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override + public java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String 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.
    * 
@@ -188,10 +159,10 @@ public 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)) { @@ -201,7 +172,6 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow(java.l } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,11 +183,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, @@ -232,20 +204,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; @@ -255,17 +225,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; } @@ -278,7 +248,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(); @@ -289,156 +260,151 @@ 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(); @@ -449,9 +415,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 @@ -470,12 +436,10 @@ 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); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption result = new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(this); int from_bitField0_ = bitField0_; result.enableEntitiesConversions_ = enableEntitiesConversions_; - result.customizedEntitiesPropertiesConversions_ = - internalGetCustomizedEntitiesPropertiesConversions(); + result.customizedEntitiesPropertiesConversions_ = internalGetCustomizedEntitiesPropertiesConversions(); result.customizedEntitiesPropertiesConversions_.makeImmutable(); onBuilt(); return result; @@ -485,39 +449,38 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption 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.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; @@ -525,13 +488,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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -558,34 +520,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableEntitiesConversions_ = input.readBool(); - - break; - } // case 8 - case 18: - { - com.google.protobuf.MapEntry - customizedEntitiesPropertiesConversions__ = - input.readMessage( - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - internalGetMutableCustomizedEntitiesPropertiesConversions() - .getMutableMap() - .put( - customizedEntitiesPropertiesConversions__.getKey(), - customizedEntitiesPropertiesConversions__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableEntitiesConversions_ = input.readBool(); + + break; + } // case 8 + case 18: { + com.google.protobuf.MapEntry + customizedEntitiesPropertiesConversions__ = input.readMessage( + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put( + customizedEntitiesPropertiesConversions__.getKey(), customizedEntitiesPropertiesConversions__.getValue()); + 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) { @@ -595,19 +548,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 @@ -615,61 +564,51 @@ 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. */ public Builder setEnableEntitiesConversions(boolean value) { - + enableEntitiesConversions_ = value; onChanged(); return this; } /** - * - * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; - * * @return This builder for chaining. */ public Builder clearEnableEntitiesConversions() { - + enableEntitiesConversions_ = false; onChanged(); 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() { + internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); } return customizedEntitiesPropertiesConversions_; } - private com.google.protobuf.MapField - internalGetMutableCustomizedEntitiesPropertiesConversions() { - onChanged(); - ; + internalGetMutableCustomizedEntitiesPropertiesConversions() { + onChanged();; 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(); @@ -681,31 +620,28 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
* * 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.
      * 
@@ -713,13 +649,11 @@ 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.
      * 
@@ -727,18 +661,16 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override + public java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String 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.
      * 
@@ -746,11 +678,10 @@ public 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"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); if (!map.containsKey(key)) { @@ -760,34 +691,34 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( } public Builder clearCustomizedEntitiesPropertiesConversions() { - 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() { + getMutableCustomizedEntitiesPropertiesConversions() { return internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap(); } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -795,34 +726,34 @@ 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"); - } + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put(key, value); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
* * map<string, string> customized_entities_properties_conversions = 2; */ + public Builder putAllCustomizedEntitiesPropertiesConversions( java.util.Map values) { - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().putAll(values); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -832,12 +763,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(); } @@ -846,27 +777,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; @@ -881,4 +812,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 c4f6e40fbfcd..654cde4be2a6 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * 
@@ -80,18 +58,18 @@ public interface CloudAIDocumentOptionOrBuilder */ /* 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..aac3cfea8e0f --- /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,133 @@ +// 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*\336" + + "\001\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*O\n\014DatabaseType\022" + + "\016\n\nDB_UNKNOWN\020\000\022\024\n\020DB_INFRA_SPANNER\020\001\022\031\n" + + "\025DB_CLOUD_SQL_POSTGRES\020\002*\252\001\n\021AccessContr" + + "olMode\022\024\n\020ACL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE" + + "_UNIVERSAL_ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT" + + "_LEVEL_ACCESS_CONTROL_BYOID\020\002\022.\n*ACL_MOD" + + "E_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI\020\003B\335\001" + + "\n$com.google.cloud.contentwarehouse.v1B\013" + + "CommonProtoP\001ZPgoogle.golang.org/genprot" + + "o/googleapis/cloud/contentwarehouse/v1;c" + + "ontentwarehouse\352AS\n(contentwarehouse.goo" + + "gleapis.com/Location\022\'projects/{project}" + + "/locations/{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/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 66% 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 1aa039f55252..6f8fbc4a6c71 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -79,10 +58,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 @@ -91,15 +67,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.
@@ -107,18 +82,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 { @@ -129,16 +103,11 @@ 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 @@ -146,34 +115,23 @@ 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() { @@ -183,15 +141,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin 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 @@ -199,26 +154,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.
@@ -227,13 +175,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,7 +191,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -268,10 +215,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;
@@ -281,22 +230,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;
@@ -325,136 +276,129 @@ 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(); @@ -476,14 +420,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(); } @@ -498,8 +441,7 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest(this); result.parent_ = parent_; if (documentLinkBuilder_ == null) { result.documentLink_ = documentLink_; @@ -519,39 +461,38 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -559,9 +500,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_; onChanged(); @@ -598,31 +537,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentLinkFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentLinkFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -635,8 +574,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -644,16 +581,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; @@ -662,8 +597,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -671,17 +604,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 { @@ -689,8 +621,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -698,25 +628,21 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -724,21 +650,16 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -746,19 +667,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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -766,58 +685,39 @@ 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 documentLinkBuilder_ != null || 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. */ 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) { @@ -833,15 +733,11 @@ 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) { @@ -855,23 +751,17 @@ 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 (documentLink_ != null) { documentLink_ = - com.google.cloud.contentwarehouse.v1.DocumentLink.newBuilder(documentLink_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentLink.newBuilder(documentLink_).mergeFrom(value).buildPartial(); } else { documentLink_ = value; } @@ -883,15 +773,11 @@ 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() { if (documentLinkBuilder_ == null) { @@ -905,64 +791,48 @@ 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() { - + onChanged(); 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_; @@ -970,49 +840,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1034,8 +891,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.
@@ -1055,8 +910,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1064,14 +917,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1083,8 +933,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1104,8 +952,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1113,15 +959,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1129,19 +972,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.
@@ -1150,24 +989,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);
     }
 
@@ -1177,43 +1013,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;
@@ -1225,8 +1059,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 f671be5dfc96..fc6ea8d4345d 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,84 +27,60 @@ 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 48045be390d6..5d7837e96dd9 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,72 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,136 +102,129 @@ 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(); @@ -258,9 +232,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 @@ -279,8 +253,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; } @@ -289,39 +262,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; @@ -329,8 +301,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; @@ -357,13 +328,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) { @@ -373,9 +343,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); } @@ -385,12 +355,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(); } @@ -399,27 +369,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; @@ -434,4 +404,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 5783534a0970..6232aaaf99de 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,86 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -89,32 +65,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 { @@ -125,16 +99,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 @@ -142,34 +111,23 @@ 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() { @@ -179,15 +137,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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 @@ -195,26 +150,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.
@@ -223,23 +171,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   public static final int POLICY_FIELD_NUMBER = 4;
   private com.google.iam.v1.Policy policy_;
   /**
-   *
-   *
    * 
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -247,15 +191,12 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ @java.lang.Override @@ -263,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. Conditions defined in the policy
    * will be ignored.
@@ -280,15 +219,11 @@ 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 CW Document.
    * 
* - * .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 @@ -296,44 +231,32 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** - * - * *
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { return getCloudAiDocumentOption(); } 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.
@@ -343,7 +266,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 @@ -351,8 +273,6 @@ public boolean hasCreateMask() { return createMask_ != null; } /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -362,7 +282,6 @@ public boolean hasCreateMask() {
    * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return The createMask. */ @java.lang.Override @@ -370,8 +289,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.
@@ -388,7 +305,6 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -400,7 +316,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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_);
     }
@@ -432,20 +349,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;
@@ -455,34 +376,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;
@@ -523,136 +449,129 @@ 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(); @@ -692,9 +611,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 @@ -713,8 +632,7 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest(this); result.parent_ = parent_; if (documentBuilder_ == null) { result.document_ = document_; @@ -749,39 +667,38 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest 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.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; @@ -789,8 +706,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_; onChanged(); @@ -836,50 +752,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getCreateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getCreateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -892,23 +810,19 @@ public Builder mergeFrom( 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; @@ -917,24 +831,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 { @@ -942,70 +853,57 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1013,58 +911,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 documentBuilder_ != null || 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. */ 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) { @@ -1080,15 +959,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) { @@ -1102,23 +977,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 (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); } else { document_ = value; } @@ -1130,15 +999,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() { if (documentBuilder_ == null) { @@ -1152,64 +1017,48 @@ 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() { - + onChanged(); 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_; @@ -1217,49 +1066,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1281,8 +1117,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.
@@ -1302,8 +1136,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1311,14 +1143,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1330,8 +1159,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1351,8 +1178,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1360,15 +1185,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1376,19 +1198,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.
@@ -1397,17 +1215,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_;
@@ -1415,35 +1230,26 @@ 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. Conditions defined in the policy
      * will be ignored.
      * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
      * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -1454,8 +1260,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1477,8 +1281,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1486,7 +1288,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();
         onChanged();
@@ -1497,8 +1300,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1509,7 +1310,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
         if (policy_ != null) {
-          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+          policy_ =
+            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
         } else {
           policy_ = value;
         }
@@ -1521,8 +1323,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1542,8 +1342,6 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1552,13 +1350,11 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 4;
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+      
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1570,12 +1366,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. Conditions defined in the policy
      * will be ignored.
@@ -1584,16 +1379,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_;
@@ -1601,58 +1394,41 @@ 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 CW Document.
      * 
* - * .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 cloudAiDocumentOptionBuilder_ != null || cloudAiDocumentOption_ != null; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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(); @@ -1666,14 +1442,11 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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) { @@ -1687,24 +1460,17 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 (cloudAiDocumentOption_ != null) { cloudAiDocumentOption_ = - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder( - cloudAiDocumentOption_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder(cloudAiDocumentOption_).mergeFrom(value).buildPartial(); } else { cloudAiDocumentOption_ = value; } @@ -1716,14 +1482,11 @@ public Builder mergeCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ public Builder clearCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { @@ -1737,63 +1500,48 @@ public Builder clearCloudAiDocumentOption() { return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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() { + onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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_; @@ -1801,13 +1549,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.
@@ -1817,15 +1560,12 @@ public Builder clearCloudAiDocumentOption() {
      * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return Whether the createMask field is set. */ public boolean hasCreateMask() { return createMaskBuilder_ != null || createMask_ != null; } /** - * - * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1835,21 +1575,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.
@@ -1874,8 +1609,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.
@@ -1886,7 +1619,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();
         onChanged();
@@ -1897,8 +1631,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.
@@ -1913,7 +1645,7 @@ public Builder mergeCreateMask(com.google.protobuf.FieldMask value) {
       if (createMaskBuilder_ == null) {
         if (createMask_ != null) {
           createMask_ =
-              com.google.protobuf.FieldMask.newBuilder(createMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(createMask_).mergeFrom(value).buildPartial();
         } else {
           createMask_ = value;
         }
@@ -1925,8 +1657,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.
@@ -1949,8 +1679,6 @@ public Builder clearCreateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1962,13 +1690,11 @@ public Builder clearCreateMask() {
      * .google.protobuf.FieldMask create_mask = 6;
      */
     public com.google.protobuf.FieldMask.Builder getCreateMaskBuilder() {
-
+      
       onChanged();
       return getCreateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1983,14 +1709,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.
@@ -2002,24 +1725,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);
     }
 
@@ -2029,12 +1749,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();
   }
@@ -2043,27 +1763,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;
@@ -2078,4 +1798,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 73%
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 86ca8b3afb62..c6188f7f6536 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,34 +87,26 @@ public interface CreateDocumentRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
@@ -172,47 +117,33 @@ public interface CreateDocumentRequestOrBuilder
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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.
@@ -222,13 +153,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.
@@ -238,13 +166,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 71%
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 92885d334070..dbdf5d48782c 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,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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() {} + private CreateDocumentResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDocumentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -83,25 +62,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.
    * 
@@ -116,8 +88,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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 +95,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 +102,6 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -142,18 +109,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,23 +125,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() {
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
     return getRuleEngineOutput();
   }
 
   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 @@ -187,26 +145,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,7 +171,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   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 (document_ != null) {
       output.writeMessage(1, getDocument());
     }
@@ -252,13 +203,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;
@@ -268,25 +222,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -317,136 +273,129 @@ 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(); @@ -472,9 +421,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 @@ -493,8 +442,7 @@ 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); if (documentBuilder_ == null) { result.document_ = document_; } else { @@ -518,39 +466,38 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.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; @@ -558,8 +505,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()); } @@ -595,32 +541,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -633,47 +580,34 @@ public Builder mergeFrom( 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 documentBuilder_ != null || document_ != null; } /** - * - * *
      * 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.
      * 
@@ -694,8 +628,6 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -714,8 +646,6 @@ public Builder setDocument( return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -726,9 +656,7 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); } else { document_ = value; } @@ -740,8 +668,6 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -760,8 +686,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -769,13 +693,11 @@ public Builder clearDocument() { * .google.cloud.contentwarehouse.v1.Document document = 1; */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Document created after executing create request.
      * 
@@ -786,14 +708,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.
      * 
@@ -801,17 +720,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_; @@ -819,13 +735,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.
@@ -833,15 +744,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 ruleEngineOutputBuilder_ != null || ruleEngineOutput_ != null; } /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -849,21 +757,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.
@@ -872,8 +775,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();
@@ -887,8 +789,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -909,8 +809,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -919,14 +817,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 (ruleEngineOutput_ != null) {
           ruleEngineOutput_ =
-              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_).mergeFrom(value).buildPartial();
         } else {
           ruleEngineOutput_ = value;
         }
@@ -938,8 +833,6 @@ public Builder mergeRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -960,8 +853,6 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -970,15 +861,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() {
+      
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -987,19 +875,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.
@@ -1009,17 +893,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_;
@@ -1027,49 +908,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 metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * 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.
@@ -1091,8 +959,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1112,8 +978,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1125,9 +989,7 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1139,8 +1001,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1160,8 +1020,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1170,13 +1028,11 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1188,14 +1044,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.
@@ -1204,24 +1057,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);
     }
 
@@ -1231,12 +1081,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();
   }
@@ -1245,27 +1095,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;
@@ -1280,4 +1130,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 80%
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 f2c6d79ba68d..12bd4f4533db 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -68,13 +42,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.
@@ -82,13 +53,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.
@@ -100,34 +68,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.
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 60%
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 decc192f3435..56fa4b55252a 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,85 +1,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -88,31 +64,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 { @@ -123,16 +97,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 @@ -140,34 +109,23 @@ 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() { @@ -175,7 +133,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,7 +165,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; @@ -217,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.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; @@ -253,136 +213,129 @@ 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(); @@ -398,14 +351,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(); } @@ -420,8 +372,7 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(this); result.parent_ = parent_; if (documentSchemaBuilder_ == null) { result.documentSchema_ = documentSchema_; @@ -436,50 +387,46 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); @@ -513,25 +460,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentSchemaFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -544,22 +490,18 @@ public Builder mergeFrom( 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; @@ -568,23 +510,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 { @@ -592,67 +531,54 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -660,58 +586,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 documentSchemaBuilder_ != null || 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. */ 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) { @@ -727,15 +634,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) { @@ -749,23 +652,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 (documentSchema_ != null) { documentSchema_ = - com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_).mergeFrom(value).buildPartial(); } else { documentSchema_ = value; } @@ -777,15 +674,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() { if (documentSchemaBuilder_ == null) { @@ -799,72 +692,55 @@ 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() { - + onChanged(); 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); } @@ -874,43 +750,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; @@ -922,8 +796,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 0d67d6700d14..327ae15557e8 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,86 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -89,32 +65,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 { @@ -125,16 +99,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 @@ -142,34 +111,23 @@ 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() { @@ -177,7 +135,6 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -209,7 +167,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; @@ -219,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.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; @@ -255,136 +215,129 @@ 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(); @@ -400,9 +353,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 @@ -421,8 +374,7 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(this); result.parent_ = parent_; if (ruleSetBuilder_ == null) { result.ruleSet_ = ruleSet_; @@ -437,39 +389,38 @@ public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest 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.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; @@ -477,8 +428,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_; onChanged(); @@ -512,25 +462,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRuleSetFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -543,23 +492,19 @@ public Builder mergeFrom( 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,24 +513,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 { @@ -593,70 +535,57 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -664,58 +593,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 ruleSetBuilder_ != null || 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. */ 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) { @@ -731,15 +641,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) { @@ -753,23 +659,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 (ruleSet_ != null) { ruleSet_ = - com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_).mergeFrom(value).buildPartial(); } else { ruleSet_ = value; } @@ -781,15 +681,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() { if (ruleSetBuilder_ == null) { @@ -803,71 +699,55 @@ 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() { - + onChanged(); 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); } @@ -877,12 +757,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(); } @@ -891,27 +771,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; @@ -926,4 +806,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 61% 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 347f06c9fef5..969b52d188a2 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,86 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -89,32 +65,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 { @@ -125,16 +99,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 @@ -142,34 +111,23 @@ 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() { @@ -177,7 +135,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -209,7 +167,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; @@ -219,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.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; @@ -255,136 +215,129 @@ 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(); @@ -400,14 +353,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(); } @@ -422,8 +374,7 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(this); result.parent_ = parent_; if (synonymSetBuilder_ == null) { result.synonymSet_ = synonymSet_; @@ -438,39 +389,38 @@ public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest 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.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; @@ -478,9 +428,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_; onChanged(); @@ -514,25 +462,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getSynonymSetFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getSynonymSetFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -545,23 +492,19 @@ public Builder mergeFrom( 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; @@ -570,24 +513,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 { @@ -595,70 +535,57 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -666,58 +593,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 synonymSetBuilder_ != null || 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. */ 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) { @@ -733,15 +641,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) { @@ -755,23 +659,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 (synonymSet_ != null) { synonymSet_ = - com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_).mergeFrom(value).buildPartial(); } else { synonymSet_ = value; } @@ -783,15 +681,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() { if (synonymSetBuilder_ == null) { @@ -805,71 +699,55 @@ 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() { - + onChanged(); 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); } @@ -879,13 +757,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(); } @@ -894,27 +771,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; @@ -929,4 +806,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/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 92d88c7c0be6..e21ed5c55e76 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,99 +1,83 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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, - ""); - } - - private com.google.protobuf.MapField entries_; - - private com.google.protobuf.MapField internalGetEntries() { + 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, + ""); + } + 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_; } @@ -102,8 +86,6 @@ 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.
@@ -114,22 +96,22 @@ 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,12 +123,11 @@ public java.util.Map getEntries() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
+
   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.
@@ -158,16 +139,16 @@ public java.util.Map getEntriesMap() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public java.lang.String getEntriesOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetEntries().getMap();
+
+  public java.lang.String getEntriesOrDefault(
+      java.lang.String key,
+      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.
@@ -179,11 +160,12 @@ public java.lang.String getEntriesOrDefault(java.lang.String key, java.lang.Stri
    * 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();
     }
@@ -191,7 +173,6 @@ public java.lang.String getEntriesOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,9 +184,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);
   }
 
@@ -215,15 +201,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;
@@ -233,15 +219,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;
   }
@@ -263,156 +249,151 @@ 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 +402,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,8 +423,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DataUpdateAction result = new com.google.cloud.contentwarehouse.v1.DataUpdateAction(this); int from_bitField0_ = bitField0_; result.entries_ = internalGetEntries(); result.entries_.makeImmutable(); @@ -455,39 +435,38 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction 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.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; @@ -495,9 +474,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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -524,24 +503,20 @@ 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()); - 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()); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,24 +526,24 @@ 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() { - onChanged(); - ; + internalGetMutableEntries() { + onChanged();; 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(); @@ -580,8 +555,6 @@ 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.
@@ -592,22 +565,22 @@ 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.
@@ -619,12 +592,11 @@ public java.util.Map getEntries() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
+
     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.
@@ -636,17 +608,16 @@ public java.util.Map getEntriesMap() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
+
     public java.lang.String getEntriesOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetEntries().getMap();
+        java.lang.String key,
+        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.
@@ -658,11 +629,12 @@ public 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();
       }
@@ -670,12 +642,11 @@ public java.lang.String getEntriesOrThrow(java.lang.String key) {
     }
 
     public Builder clearEntries() {
-      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.
@@ -686,21 +657,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() {
       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.
@@ -711,20 +684,19 @@ 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");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableEntries().getMutableMap().put(key, value);
+      internalGetMutableEntries().getMutableMap()
+          .put(key, value);
       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.
@@ -735,13 +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);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -751,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();
   }
@@ -765,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;
@@ -800,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 e6705b217c5f..850f4f301e37 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -83,13 +64,11 @@ public interface DataUpdateActionOrBuilder
    */
 
   /* 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.
@@ -100,5 +79,7 @@ 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 61%
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 d4b9ae2cab97..2e4778db79ce 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,99 +1,83 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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, - ""); - } - - private com.google.protobuf.MapField conditions_; - - private com.google.protobuf.MapField internalGetConditions() { + 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, + ""); + } + 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_; } @@ -102,8 +86,6 @@ 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
@@ -112,22 +94,22 @@ 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,12 +119,11 @@ public java.util.Map getConditions() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
+
   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
@@ -152,17 +133,16 @@ public java.util.Map getConditionsMap() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
+
   public java.lang.String getConditionsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetConditions().getMap();
+      java.lang.String key,
+      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
@@ -172,11 +152,12 @@ public 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();
     }
@@ -184,7 +165,6 @@ public java.lang.String getConditionsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -196,9 +176,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);
   }
 
@@ -208,15 +193,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;
@@ -226,15 +211,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;
   }
@@ -256,156 +241,151 @@ 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(); @@ -414,9 +394,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 @@ -435,8 +415,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DataValidationAction result = new com.google.cloud.contentwarehouse.v1.DataValidationAction(this); int from_bitField0_ = bitField0_; result.conditions_ = internalGetConditions(); result.conditions_.makeImmutable(); @@ -448,39 +427,38 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction 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.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; @@ -488,9 +466,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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -517,24 +495,20 @@ 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()); - 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()); + 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) { @@ -544,27 +518,24 @@ 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() { + internalGetConditions() { if (conditions_ == null) { return com.google.protobuf.MapField.emptyMapField( ConditionsDefaultEntryHolder.defaultEntry); } return conditions_; } - private com.google.protobuf.MapField - internalGetMutableConditions() { - onChanged(); - ; + internalGetMutableConditions() { + onChanged();; 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(); @@ -576,8 +547,6 @@ 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
@@ -586,22 +555,22 @@ 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
@@ -611,12 +580,11 @@ public java.util.Map getConditions() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
+
     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
@@ -626,17 +594,16 @@ public java.util.Map getConditionsMap() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
+
     public java.lang.String getConditionsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetConditions().getMap();
+        java.lang.String key,
+        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
@@ -646,11 +613,12 @@ public 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();
       }
@@ -658,12 +626,11 @@ public java.lang.String getConditionsOrThrow(java.lang.String key) {
     }
 
     public Builder clearConditions() {
-      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
@@ -672,21 +639,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() {
       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
@@ -695,20 +664,19 @@ 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");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableConditions().getMutableMap().put(key, value);
+      internalGetMutableConditions().getMutableMap()
+          .put(key, value);
       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
@@ -717,13 +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);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -733,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();
   }
@@ -747,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;
@@ -782,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 8dd962adbe6f..a710c49c7adb 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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
@@ -75,13 +56,11 @@ public interface DataValidationActionOrBuilder
    */
 
   /* 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
@@ -90,5 +69,7 @@ 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 b456985a2b3e..4beeb8d56e40 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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
    * 
@@ -62,8 +40,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * This value is required by protobuf best practices
    * 
@@ -72,8 +48,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DB_UNKNOWN_VALUE = 0; /** - * - * *
    * Internal Spanner
    * 
@@ -82,8 +56,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
    * 
@@ -92,6 +64,7 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DB_CLOUD_SQL_POSTGRES_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,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; @@ -174,3 +147,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 b35a2c4e1cb5..e5c558520f70 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List values_; /** - * - * *
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -84,8 +63,6 @@ public java.util.List getValuesList() {
     return values_;
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -94,12 +71,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.
@@ -112,8 +88,6 @@ public int getValuesCount() {
     return values_.size();
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -126,8 +100,6 @@ public com.google.type.DateTime getValues(int index) {
     return values_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -136,12 +108,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;
@@ -153,7 +125,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -167,7 +140,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;
@@ -177,15 +151,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;
   }
@@ -207,135 +181,129 @@ 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(); @@ -350,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_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 @@ -371,8 +339,7 @@ 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); int from_bitField0_ = bitField0_; if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -391,39 +358,38 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray 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.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; @@ -431,8 +397,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()) { @@ -451,10 +416,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_); } @@ -486,25 +450,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) { @@ -514,27 +478,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.
@@ -550,8 +508,6 @@ public java.util.List getValuesList() {
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -567,8 +523,6 @@ public int getValuesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -584,8 +538,6 @@ public com.google.type.DateTime getValues(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -593,7 +545,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();
@@ -607,8 +560,6 @@ public Builder setValues(int index, com.google.type.DateTime value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -616,7 +567,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());
@@ -627,8 +579,6 @@ public Builder setValues(int index, com.google.type.DateTime.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -650,8 +600,6 @@ public Builder addValues(com.google.type.DateTime value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -659,7 +607,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();
@@ -673,8 +622,6 @@ public Builder addValues(int index, com.google.type.DateTime value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -682,7 +629,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());
@@ -693,8 +641,6 @@ public Builder addValues(com.google.type.DateTime.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -702,7 +648,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());
@@ -713,8 +660,6 @@ public Builder addValues(int index, com.google.type.DateTime.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -722,10 +667,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);
@@ -733,8 +680,6 @@ public Builder addAllValues(java.lang.Iterable
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -753,8 +698,6 @@ public Builder clearValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -773,8 +716,6 @@ public Builder removeValues(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -782,12 +723,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.
@@ -795,16 +735,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.
@@ -812,7 +750,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 {
@@ -820,8 +759,6 @@ public java.util.List getValuesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -830,11 +767,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.
@@ -842,13 +778,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.
@@ -856,29 +791,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);
     }
 
@@ -888,12 +821,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();
   }
@@ -902,27 +835,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;
@@ -937,4 +870,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 e6e0f797a2c1..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 a8e4ebdf463b..3879feac4683 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,72 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,136 +102,129 @@ 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(); @@ -258,9 +232,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 @@ -279,8 +253,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; } @@ -289,39 +262,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; @@ -329,8 +301,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; @@ -357,13 +328,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) { @@ -373,9 +343,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); } @@ -385,12 +355,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(); } @@ -399,27 +369,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; @@ -434,4 +404,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 844e4369cd8b..bb38c5fdcf4a 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,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
    * 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 @@ -85,7 +64,6 @@ public boolean getEnableHardDelete() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +75,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -111,7 +90,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; @@ -121,15 +101,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; } @@ -142,143 +122,137 @@ 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(); @@ -288,9 +262,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 @@ -309,8 +283,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(this); result.enableHardDelete_ = enableHardDelete_; onBuilt(); return result; @@ -320,39 +293,38 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction 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.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; @@ -360,8 +332,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()); } @@ -391,19 +362,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableHardDelete_ = input.readBool(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableHardDelete_ = input.readBool(); + + 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) { @@ -414,17 +383,14 @@ public Builder mergeFrom( return this; } - 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 @@ -432,45 +398,39 @@ 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. */ public Builder setEnableHardDelete(boolean value) { - + enableHardDelete_ = value; onChanged(); 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() { - + enableHardDelete_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -480,12 +440,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(); } @@ -494,27 +454,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; @@ -529,4 +489,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 67% 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 927481658f8d..3774fd7e95e6 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,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -127,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 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 @@ -143,26 +114,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.
@@ -171,13 +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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -189,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_);
     }
@@ -209,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;
@@ -219,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.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;
@@ -255,136 +220,129 @@ 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(); @@ -400,14 +358,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(); } @@ -422,8 +379,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest(this); result.name_ = name_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -438,39 +394,38 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -478,9 +433,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_; onChanged(); @@ -514,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -545,24 +497,20 @@ public Builder mergeFrom( 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; @@ -571,25 +519,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 { @@ -597,73 +542,60 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -671,49 +603,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -735,8 +654,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.
@@ -756,8 +673,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -765,14 +680,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -784,8 +696,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -805,8 +715,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -814,15 +722,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -830,19 +735,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.
@@ -851,24 +752,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);
     }
 
@@ -878,43 +776,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;
@@ -926,8 +822,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 eb1d19beeb15..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 68%
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 ff02a8785e6d..743b460162c2 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,77 +1,56 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the document to delete.
    * Format:
@@ -80,10 +59,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 @@ -92,15 +68,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:
@@ -109,18 +84,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 { @@ -131,15 +105,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 @@ -147,26 +118,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.
@@ -175,13 +139,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -193,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(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -213,7 +176,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;
@@ -223,18 +187,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;
@@ -259,136 +224,129 @@ 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(); @@ -404,9 +362,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 @@ -425,8 +383,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest(this); result.name_ = name_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -441,39 +398,38 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest 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.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; @@ -481,8 +437,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_; onChanged(); @@ -516,25 +471,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -547,8 +501,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -557,16 +509,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; @@ -575,8 +525,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -585,17 +533,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 { @@ -603,8 +550,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -613,25 +558,21 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -640,21 +581,16 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -663,19 +599,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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -683,49 +617,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -747,8 +668,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.
@@ -768,8 +687,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -777,14 +694,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -796,8 +710,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -817,8 +729,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -826,15 +736,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -842,19 +749,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.
@@ -863,24 +766,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);
     }
 
@@ -890,12 +790,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();
   }
@@ -904,27 +804,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;
@@ -939,4 +839,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 6cfca169c426..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 267001209a21..5467ea677faf 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,85 +1,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -88,31 +64,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 { @@ -121,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,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_); } @@ -157,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.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; } @@ -185,136 +159,129 @@ 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(); @@ -324,14 +291,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(); } @@ -346,8 +312,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,50 +322,46 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); @@ -431,19 +392,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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,22 +415,18 @@ public Builder mergeFrom( 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; @@ -480,23 +435,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 { @@ -504,74 +456,61 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -581,43 +520,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; @@ -629,8 +566,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 63% 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 cdca7fde2f9e..0c76be1a87e8 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,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -161,15 +135,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; } @@ -189,136 +163,129 @@ 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(); @@ -328,9 +295,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 @@ -349,8 +316,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -360,39 +326,38 @@ public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest 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.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; @@ -400,8 +365,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_; onChanged(); @@ -432,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -457,24 +419,20 @@ public Builder mergeFrom( 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; @@ -483,25 +441,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 { @@ -509,80 +464,67 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +534,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(); } @@ -606,27 +548,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; @@ -641,4 +583,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 7b79cd036f4b..eeba9d0dc659 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,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -161,15 +135,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; } @@ -189,136 +163,129 @@ 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(); @@ -328,14 +295,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(); } @@ -350,8 +316,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -361,39 +326,38 @@ public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest 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.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; @@ -401,9 +365,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_; onChanged(); @@ -434,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,24 +419,20 @@ public Builder mergeFrom( 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; @@ -485,25 +441,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 { @@ -511,80 +464,67 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,13 +534,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(); } @@ -609,27 +548,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; @@ -644,4 +583,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 74% 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 f73c917d59f4..70ae3fba97bd 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -53,42 +35,38 @@ private Document() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Document(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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; } @@ -104,38 +82,32 @@ 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; 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,31 +123,26 @@ 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; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the document.
    * Format:
@@ -184,7 +151,6 @@ public RawDocumentCase getRawDocumentCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -193,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:
@@ -210,15 +175,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 { @@ -229,14 +195,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REFERENCE_ID_FIELD_NUMBER = 11; 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 @@ -245,29 +208,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 { @@ -278,8 +241,6 @@ public com.google.protobuf.ByteString getReferenceIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. Display name of the document given by the user. This name will be displayed
    * in the UI.
@@ -289,7 +250,6 @@ public com.google.protobuf.ByteString getReferenceIdBytes() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -298,15 +258,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.
@@ -316,15 +275,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 { @@ -335,8 +295,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int TITLE_FIELD_NUMBER = 18; private volatile java.lang.Object title_; /** - * - * *
    * Title that describes the document.
    * This is usually present in the top section of the document, and is a
@@ -344,7 +302,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string title = 18; - * * @return The title. */ @java.lang.Override @@ -353,15 +310,14 @@ 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 is usually present in the top section of the document, and is a
@@ -369,15 +325,16 @@ public java.lang.String getTitle() {
    * 
* * 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 { @@ -388,14 +345,11 @@ public com.google.protobuf.ByteString getTitleBytes() { public static final int DISPLAY_URI_FIELD_NUMBER = 17; 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 @@ -404,29 +358,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 { @@ -437,8 +391,6 @@ public com.google.protobuf.ByteString getDisplayUriBytes() { public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object documentSchemaName_; /** - * - * *
    * The Document schema name.
    * Format:
@@ -446,7 +398,6 @@ public com.google.protobuf.ByteString getDisplayUriBytes() {
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ @java.lang.Override @@ -455,15 +406,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:
@@ -471,15 +421,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 { @@ -489,28 +440,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() { @@ -521,7 +466,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; @@ -530,24 +476,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; } @@ -559,14 +504,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 @@ -574,26 +516,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.
    * 
@@ -603,7 +540,7 @@ 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(); } @@ -611,14 +548,11 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil public static final int STRUCTURED_CONTENT_URI_FIELD_NUMBER = 16; private volatile java.lang.Object structuredContentUri_; /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16; - * * @return The structuredContentUri. */ @java.lang.Override @@ -627,29 +561,29 @@ public java.lang.String getStructuredContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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; - * * @return The bytes for structuredContentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getStructuredContentUriBytes() { + 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 { @@ -659,28 +593,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() { @@ -691,7 +619,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; @@ -700,24 +629,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; } @@ -729,14 +657,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 @@ -744,14 +669,11 @@ public boolean hasInlineRawDocument() { return rawDocumentCase_ == 6; } /** - * - * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; - * * @return The inlineRawDocument. */ @java.lang.Override @@ -765,8 +687,6 @@ public com.google.protobuf.ByteString getInlineRawDocument() { public static final int PROPERTIES_FIELD_NUMBER = 7; private java.util.List properties_; /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -778,8 +698,6 @@ public java.util.List getProperti return properties_; } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -787,13 +705,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.
    * 
@@ -805,8 +721,6 @@ public int getPropertiesCount() { return properties_.size(); } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -818,8 +732,6 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -827,22 +739,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 @@ -850,15 +759,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 @@ -866,14 +771,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() { @@ -883,15 +785,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 @@ -899,15 +797,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 @@ -915,14 +809,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() { @@ -932,8 +823,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER = 10; private int 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
@@ -942,16 +831,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
@@ -960,30 +845,22 @@ 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = - com.google.cloud.contentwarehouse.v1.RawDocumentFileType.valueOf(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.valueOf(rawDocumentFileType_); + return result == null ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED : result; } public static final int ASYNC_ENABLED_FIELD_NUMBER = 12; private boolean asyncEnabled_; /** - * - * *
    * If true, makes the document visible to asynchronous policies and rules.
    * 
* * bool async_enabled = 12; - * * @return The asyncEnabled. */ @java.lang.Override @@ -994,14 +871,11 @@ public boolean getAsyncEnabled() { public static final int TEXT_EXTRACTION_DISABLED_FIELD_NUMBER = 19; private boolean textExtractionDisabled_; /** - * - * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19; - * * @return The textExtractionDisabled. */ @java.lang.Override @@ -1012,14 +886,11 @@ public boolean getTextExtractionDisabled() { public static final int CREATOR_FIELD_NUMBER = 13; private volatile java.lang.Object creator_; /** - * - * *
    * The user who creates the document.
    * 
* * string creator = 13; - * * @return The creator. */ @java.lang.Override @@ -1028,29 +899,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 { @@ -1061,14 +932,11 @@ public com.google.protobuf.ByteString getCreatorBytes() { public static final int UPDATER_FIELD_NUMBER = 14; private volatile java.lang.Object updater_; /** - * - * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; - * * @return The updater. */ @java.lang.Override @@ -1077,29 +945,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 { @@ -1108,7 +976,6 @@ public com.google.protobuf.ByteString getUpdaterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1120,7 +987,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1137,7 +1005,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)); @@ -1148,10 +1017,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_)) { @@ -1200,38 +1066,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_); @@ -1252,7 +1119,8 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1262,42 +1130,57 @@ public int getSerializedSize() { @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 (getTextExtractionDisabled() != other.getTextExtractionDisabled()) return false; - if (!getCreator().equals(other.getCreator())) return false; - if (!getUpdater().equals(other.getUpdater())) return false; + if (getAsyncEnabled() + != other.getAsyncEnabled()) return false; + if (getTextExtractionDisabled() + != other.getTextExtractionDisabled()) return false; + if (!getCreator() + .equals(other.getCreator())) return false; + if (!getUpdater() + .equals(other.getUpdater())) 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: @@ -1305,10 +1188,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: @@ -1353,9 +1238,11 @@ 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) + 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) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + UPDATER_FIELD_NUMBER; @@ -1389,136 +1276,130 @@ 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(); @@ -1576,9 +1457,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 @@ -1597,8 +1478,7 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; result.referenceId_ = referenceId_; @@ -1657,39 +1537,38 @@ public com.google.cloud.contentwarehouse.v1.Document 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.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; @@ -1744,10 +1623,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { 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_); } @@ -1777,40 +1655,34 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { onChanged(); } 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(); @@ -1838,136 +1710,123 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - documentSchemaName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + documentSchemaName_ = input.readStringRequireUtf8(); - 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); + 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); - break; - } // case 66 - case 74: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 66 + case 74: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 74 - case 80: - { - rawDocumentFileType_ = input.readEnum(); + break; + } // case 74 + case 80: { + rawDocumentFileType_ = input.readEnum(); - break; - } // case 80 - case 90: - { - referenceId_ = input.readStringRequireUtf8(); + break; + } // case 80 + case 90: { + referenceId_ = input.readStringRequireUtf8(); - break; - } // case 90 - case 96: - { - asyncEnabled_ = input.readBool(); + break; + } // case 90 + case 96: { + asyncEnabled_ = input.readBool(); - break; - } // case 96 - case 106: - { - creator_ = input.readStringRequireUtf8(); + break; + } // case 96 + case 106: { + creator_ = input.readStringRequireUtf8(); - break; - } // case 106 - case 114: - { - updater_ = input.readStringRequireUtf8(); + break; + } // case 106 + case 114: { + updater_ = input.readStringRequireUtf8(); - break; - } // case 114 - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - structuredContentCase_ = 15; - structuredContent_ = s; - break; - } // case 122 - case 130: - { - structuredContentUri_ = input.readStringRequireUtf8(); + break; + } // case 114 + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + structuredContentCase_ = 15; + structuredContent_ = s; + break; + } // case 122 + case 130: { + structuredContentUri_ = input.readStringRequireUtf8(); - break; - } // case 130 - case 138: - { - displayUri_ = input.readStringRequireUtf8(); + break; + } // case 130 + case 138: { + displayUri_ = input.readStringRequireUtf8(); - break; - } // case 138 - case 146: - { - title_ = input.readStringRequireUtf8(); + break; + } // case 138 + case 146: { + title_ = input.readStringRequireUtf8(); - break; - } // case 146 - case 152: - { - textExtractionDisabled_ = input.readBool(); + break; + } // case 146 + case 152: { + textExtractionDisabled_ = input.readBool(); - break; - } // case 152 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 152 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1977,12 +1836,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() { @@ -1994,9 +1853,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() { @@ -2010,8 +1870,6 @@ public Builder clearRawDocument() { private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2020,13 +1878,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; @@ -2035,8 +1893,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2045,14 +1901,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 { @@ -2060,8 +1917,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2070,22 +1925,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2094,18 +1947,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2114,16 +1964,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2131,20 +1981,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; @@ -2153,21 +2001,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 { @@ -2175,61 +2022,54 @@ 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) { + public Builder setReferenceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceId_ = value; 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() { - + referenceId_ = getDefaultInstance().getReferenceId(); onChanged(); 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) { + public Builder setReferenceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceId_ = value; onChanged(); return this; @@ -2237,8 +2077,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.
@@ -2248,13 +2086,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; @@ -2263,8 +2101,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2274,14 +2110,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 { @@ -2289,8 +2126,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.
@@ -2300,22 +2135,20 @@ 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) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2325,18 +2158,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2346,16 +2176,16 @@ 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2363,8 +2193,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object title_ = ""; /** - * - * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2372,13 +2200,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2387,8 +2215,6 @@ public java.lang.String getTitle() { } } /** - * - * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2396,14 +2222,15 @@ public java.lang.String getTitle() {
      * 
* * 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 { @@ -2411,8 +2238,6 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2420,22 +2245,20 @@ public com.google.protobuf.ByteString getTitleBytes() {
      * 
* * string title = 18; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { + public Builder setTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** - * - * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2443,18 +2266,15 @@ public Builder setTitle(java.lang.String value) {
      * 
* * string title = 18; - * * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** - * - * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2462,16 +2282,16 @@ public Builder clearTitle() {
      * 
* * string title = 18; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; @@ -2479,20 +2299,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; @@ -2501,21 +2319,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 { @@ -2523,61 +2340,54 @@ 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) { + public Builder setDisplayUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayUri_ = value; 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() { - + displayUri_ = getDefaultInstance().getDisplayUri(); onChanged(); 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) { + public Builder setDisplayUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayUri_ = value; onChanged(); return this; @@ -2585,8 +2395,6 @@ public Builder setDisplayUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object documentSchemaName_ = ""; /** - * - * *
      * The Document schema name.
      * Format:
@@ -2594,13 +2402,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; @@ -2609,8 +2417,6 @@ public java.lang.String getDocumentSchemaName() { } } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2618,14 +2424,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 { @@ -2633,8 +2440,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2642,22 +2447,20 @@ 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) { + public Builder setDocumentSchemaName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentSchemaName_ = value; onChanged(); return this; } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2665,18 +2468,15 @@ public Builder setDocumentSchemaName(java.lang.String value) {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { - + documentSchemaName_ = getDefaultInstance().getDocumentSchemaName(); onChanged(); return this; } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2684,30 +2484,27 @@ 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) { + public Builder setDocumentSchemaNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentSchemaName_ = value; onChanged(); return this; } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @return Whether the plainText field is set. */ @java.lang.Override @@ -2715,14 +2512,11 @@ public boolean hasPlainText() { return structuredContentCase_ == 15; } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @return The plainText. */ @java.lang.Override @@ -2732,7 +2526,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; @@ -2743,25 +2538,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; } @@ -2771,35 +2565,30 @@ 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) { + public Builder setPlainText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - structuredContentCase_ = 15; + 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() { @@ -2811,22 +2600,20 @@ 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) { + public Builder setPlainTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); structuredContentCase_ = 15; structuredContent_ = value; onChanged(); @@ -2834,19 +2621,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 @@ -2854,14 +2635,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 @@ -2879,8 +2657,6 @@ public com.google.cloud.documentai.v1.Document getCloudAiDocument() { } } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2901,8 +2677,6 @@ public Builder setCloudAiDocument(com.google.cloud.documentai.v1.Document value) return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2921,8 +2695,6 @@ public Builder setCloudAiDocument( return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2931,13 +2703,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; } @@ -2953,8 +2722,6 @@ public Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document valu return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2978,8 +2745,6 @@ public Builder clearCloudAiDocument() { return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2990,8 +2755,6 @@ public com.google.cloud.documentai.v1.Document.Builder getCloudAiDocumentBuilder return getCloudAiDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3010,8 +2773,6 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3019,46 +2780,38 @@ 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()); structuredContent_ = null; } structuredContentCase_ = 4; - onChanged(); - ; + onChanged();; return cloudAiDocumentBuilder_; } private java.lang.Object structuredContentUri_ = ""; /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; - * * @return The structuredContentUri. */ 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; @@ -3067,21 +2820,20 @@ public java.lang.String getStructuredContentUri() { } } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; - * * @return The bytes for structuredContentUri. */ - public com.google.protobuf.ByteString getStructuredContentUriBytes() { + 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 { @@ -3089,75 +2841,65 @@ public com.google.protobuf.ByteString getStructuredContentUriBytes() { } } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; - * * @param value The structuredContentUri to set. * @return This builder for chaining. */ - public Builder setStructuredContentUri(java.lang.String value) { + public Builder setStructuredContentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + structuredContentUri_ = value; onChanged(); return this; } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; - * * @return This builder for chaining. */ public Builder clearStructuredContentUri() { - + structuredContentUri_ = getDefaultInstance().getStructuredContentUri(); onChanged(); return this; } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; - * * @param value The bytes for structuredContentUri to set. * @return This builder for chaining. */ - public Builder setStructuredContentUriBytes(com.google.protobuf.ByteString value) { + public Builder setStructuredContentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + structuredContentUri_ = value; onChanged(); return this; } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @return Whether the rawDocumentPath field is set. */ @java.lang.Override @@ -3165,14 +2907,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 @@ -3182,7 +2921,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; @@ -3193,25 +2933,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; } @@ -3221,35 +2960,30 @@ 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) { + public Builder setRawDocumentPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - rawDocumentCase_ = 5; + 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() { @@ -3261,22 +2995,20 @@ 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) { + public Builder setRawDocumentPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); rawDocumentCase_ = 5; rawDocument_ = value; onChanged(); @@ -3284,28 +3016,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() { @@ -3315,35 +3041,29 @@ 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(); - } - rawDocumentCase_ = 6; + 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() { @@ -3356,25 +3076,18 @@ public Builder clearInlineRawDocument() { } 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 values that are user supplied metadata.
      * 
@@ -3389,8 +3102,6 @@ public java.util.List getProperti } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3405,8 +3116,6 @@ public int getPropertiesCount() { } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3421,15 +3130,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(); @@ -3443,8 +3151,6 @@ public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3463,8 +3169,6 @@ public Builder setProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3485,15 +3189,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(); @@ -3507,8 +3210,6 @@ public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3527,8 +3228,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3547,8 +3246,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3559,7 +3256,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); @@ -3567,8 +3265,6 @@ public Builder addAllProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3586,8 +3282,6 @@ public Builder clearProperties() { return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3605,20 +3299,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.
      * 
@@ -3628,22 +3319,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 { @@ -3651,8 +3339,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3660,48 +3346,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_ & 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_; @@ -3709,58 +3389,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3776,17 +3437,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(); onChanged(); @@ -3797,21 +3455,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3823,15 +3477,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() { if (updateTimeBuilder_ == null) { @@ -3845,64 +3495,48 @@ 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() { - + onChanged(); 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_; @@ -3910,58 +3544,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 createTimeBuilder_ != null || 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. */ 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) { @@ -3977,17 +3592,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(); onChanged(); @@ -3998,21 +3610,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4024,15 +3632,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() { if (createTimeBuilder_ == null) { @@ -4046,64 +3650,48 @@ 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() { - + onChanged(); 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_; @@ -4111,8 +3699,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
@@ -4120,18 +3706,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
@@ -4139,21 +3720,17 @@ 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. */ public Builder setRawDocumentFileTypeValue(int value) { - + rawDocumentFileType_ = value; onChanged(); 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
@@ -4161,23 +3738,16 @@ 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = - com.google.cloud.contentwarehouse.v1.RawDocumentFileType.valueOf(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.valueOf(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
@@ -4185,25 +3755,20 @@ 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(); } - + rawDocumentFileType_ = value.getNumber(); onChanged(); 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
@@ -4211,28 +3776,23 @@ 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() { - + rawDocumentFileType_ = 0; onChanged(); return this; } - private boolean asyncEnabled_; + private boolean asyncEnabled_ ; /** - * - * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12; - * * @return The asyncEnabled. */ @java.lang.Override @@ -4240,51 +3800,42 @@ public boolean getAsyncEnabled() { return asyncEnabled_; } /** - * - * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12; - * * @param value The asyncEnabled to set. * @return This builder for chaining. */ public Builder setAsyncEnabled(boolean value) { - + asyncEnabled_ = value; onChanged(); return this; } /** - * - * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12; - * * @return This builder for chaining. */ public Builder clearAsyncEnabled() { - + asyncEnabled_ = false; onChanged(); return this; } - private boolean textExtractionDisabled_; + private boolean textExtractionDisabled_ ; /** - * - * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19; - * * @return The textExtractionDisabled. */ @java.lang.Override @@ -4292,36 +3843,30 @@ public boolean getTextExtractionDisabled() { return textExtractionDisabled_; } /** - * - * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19; - * * @param value The textExtractionDisabled to set. * @return This builder for chaining. */ public Builder setTextExtractionDisabled(boolean value) { - + textExtractionDisabled_ = value; onChanged(); return this; } /** - * - * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19; - * * @return This builder for chaining. */ public Builder clearTextExtractionDisabled() { - + textExtractionDisabled_ = false; onChanged(); return this; @@ -4329,20 +3874,18 @@ public Builder clearTextExtractionDisabled() { 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; @@ -4351,21 +3894,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 { @@ -4373,61 +3915,54 @@ 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) { + public Builder setCreator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** - * - * *
      * The user who creates the document.
      * 
* * string creator = 13; - * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); 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) { + public Builder setCreatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; @@ -4435,20 +3970,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; @@ -4457,21 +3990,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 { @@ -4479,68 +4011,61 @@ 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) { + public Builder setUpdater( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + updater_ = value; onChanged(); return this; } /** - * - * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; - * * @return This builder for chaining. */ public Builder clearUpdater() { - + updater_ = getDefaultInstance().getUpdater(); onChanged(); 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) { + public Builder setUpdaterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + updater_ = 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); } @@ -4550,12 +4075,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(); } @@ -4564,27 +4089,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; @@ -4599,4 +4124,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/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 69% 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 dfd668019bd6..d112b27c13ac 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,43 +27,39 @@ private DocumentLink() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentLink(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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.
      * 
@@ -90,8 +68,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The documentlink has both source and target documents detected.
      * 
@@ -100,8 +76,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -113,8 +87,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown state of documentlink.
      * 
@@ -123,8 +95,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.
      * 
@@ -133,8 +103,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.
      * 
@@ -143,6 +111,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( @@ -167,51 +136,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; @@ -231,8 +198,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; 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
@@ -242,7 +207,6 @@ private State(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -251,15 +215,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
@@ -269,15 +232,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 { @@ -288,14 +252,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 @@ -303,25 +264,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.
    * 
@@ -329,22 +283,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() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder() { return getSourceDocumentReference(); } 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 @@ -352,25 +302,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.
    * 
@@ -378,22 +321,18 @@ 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() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder() { return getTargetDocumentReference(); } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** - * - * *
    * Description of this document-link.
    * 
* * string description = 4; - * * @return The description. */ @java.lang.Override @@ -402,29 +341,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 { @@ -435,15 +374,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 @@ -451,15 +386,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 @@ -467,14 +398,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() { @@ -484,15 +412,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 @@ -500,15 +424,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 @@ -516,14 +436,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() { @@ -533,8 +450,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 7; private int 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
@@ -542,16 +457,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
@@ -559,21 +470,15 @@ 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = - com.google.cloud.contentwarehouse.v1.DocumentLink.State.valueOf(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.valueOf(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; @@ -585,7 +490,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -604,8 +510,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); @@ -621,25 +526,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; @@ -649,31 +556,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; @@ -715,135 +627,129 @@ 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(); @@ -881,9 +787,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 @@ -902,8 +808,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DocumentLink result = new com.google.cloud.contentwarehouse.v1.DocumentLink(this); result.name_ = name_; if (sourceDocumentReferenceBuilder_ == null) { result.sourceDocumentReference_ = sourceDocumentReference_; @@ -935,39 +840,38 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink 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.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; @@ -975,8 +879,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_; onChanged(); @@ -1026,57 +929,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getSourceDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage( - getTargetDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getSourceDocumentReferenceFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getTargetDocumentReferenceFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 56: { + state_ = input.readEnum(); + + 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) { @@ -1089,8 +990,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1100,13 +999,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; @@ -1115,8 +1014,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
@@ -1126,14 +1023,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 { @@ -1141,8 +1039,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
@@ -1152,22 +1048,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1177,18 +1071,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1198,16 +1089,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1215,58 +1106,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 sourceDocumentReferenceBuilder_ != null || sourceDocumentReference_ != null; } /** - * - * *
      * 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(); @@ -1280,14 +1154,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) { @@ -1301,24 +1172,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 (sourceDocumentReference_ != null) { sourceDocumentReference_ = - com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder( - sourceDocumentReference_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder(sourceDocumentReference_).mergeFrom(value).buildPartial(); } else { sourceDocumentReference_ = value; } @@ -1330,14 +1194,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() { if (sourceDocumentReferenceBuilder_ == null) { @@ -1351,63 +1212,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() { + 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_; @@ -1415,58 +1261,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 targetDocumentReferenceBuilder_ != null || targetDocumentReference_ != null; } /** - * - * *
      * 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(); @@ -1480,14 +1309,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) { @@ -1501,24 +1327,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 (targetDocumentReference_ != null) { targetDocumentReference_ = - com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder( - targetDocumentReference_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder(targetDocumentReference_).mergeFrom(value).buildPartial(); } else { targetDocumentReference_ = value; } @@ -1530,14 +1349,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() { if (targetDocumentReferenceBuilder_ == null) { @@ -1551,63 +1367,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() { + 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_; @@ -1615,20 +1416,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; @@ -1637,21 +1436,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 { @@ -1659,61 +1457,54 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Description of this document-link.
      * 
* * string description = 4; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1721,58 +1512,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1788,17 +1560,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(); onChanged(); @@ -1809,21 +1578,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1835,15 +1600,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() { if (updateTimeBuilder_ == null) { @@ -1857,64 +1618,48 @@ 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() { - + onChanged(); 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_; @@ -1922,58 +1667,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1989,17 +1715,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(); onChanged(); @@ -2010,21 +1733,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2036,15 +1755,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() { if (createTimeBuilder_ == null) { @@ -2058,64 +1773,48 @@ 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() { - + onChanged(); 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_; @@ -2123,8 +1822,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
@@ -2132,16 +1829,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
@@ -2149,19 +1842,16 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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
@@ -2169,21 +1859,15 @@ 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = - com.google.cloud.contentwarehouse.v1.DocumentLink.State.valueOf(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.valueOf(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
@@ -2191,7 +1875,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. */ @@ -2199,14 +1882,12 @@ public Builder setState(com.google.cloud.contentwarehouse.v1.DocumentLink.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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
@@ -2214,18 +1895,17 @@ 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() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2235,12 +1915,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(); } @@ -2249,27 +1929,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; @@ -2284,4 +1964,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 bbf85ba8b160..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..419c85e4a6f2 --- /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,218 @@ +// 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: @@ -34,13 +16,10 @@ public interface DocumentOrBuilder *
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the document.
    * Format:
@@ -49,39 +28,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.
@@ -91,13 +63,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.
@@ -107,14 +76,12 @@ 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 is usually present in the top section of the document, and is a
@@ -122,13 +89,10 @@ public interface DocumentOrBuilder
    * 
* * string title = 18; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
    * Title that describes the document.
    * This is usually present in the top section of the document, and is a
@@ -136,39 +100,32 @@ public interface DocumentOrBuilder
    * 
* * 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:
@@ -176,13 +133,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:
@@ -190,75 +144,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.
    * 
@@ -268,105 +206,83 @@ public interface DocumentOrBuilder com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder(); /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16; - * * @return The structuredContentUri. */ java.lang.String getStructuredContentUri(); /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16; - * * @return The bytes for structuredContentUri. */ - com.google.protobuf.ByteString getStructuredContentUriBytes(); + 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.
    * 
@@ -375,8 +291,6 @@ public interface DocumentOrBuilder */ com.google.cloud.contentwarehouse.v1.Property getProperties(int index); /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -385,106 +299,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
@@ -493,13 +380,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
@@ -508,89 +392,71 @@ 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; - * * @return The asyncEnabled. */ boolean getAsyncEnabled(); /** - * - * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19; - * * @return The textExtractionDisabled. */ boolean getTextExtractionDisabled(); /** - * - * *
    * 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(); - public com.google.cloud.contentwarehouse.v1.Document.StructuredContentCase - getStructuredContentCase(); + public com.google.cloud.contentwarehouse.v1.Document.StructuredContentCase getStructuredContentCase(); public com.google.cloud.contentwarehouse.v1.Document.RawDocumentCase getRawDocumentCase(); } 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..5714f3d79b33 --- /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,303 @@ +// 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\"\266\007\n\010Document\022\014\n\004name\030\001 \001(\t\022\024\n\014re" + + "ference_id\030\013 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022\r\n\005title\030\022 \001(\t\022\023\n\013display_uri\030\021 \001(\t\022" + + "Q\n\024document_schema_name\030\003 \001(\tB3\372A0\n.cont" + + "entwarehouse.googleapis.com/DocumentSche" + + "ma\022\024\n\nplain_text\030\017 \001(\tH\000\022A\n\021cloud_ai_doc" + + "ument\030\004 \001(\0132$.google.cloud.documentai.v1" + + ".DocumentH\000\022\036\n\026structured_content_uri\030\020 " + + "\001(\t\022\033\n\021raw_document_path\030\005 \001(\tH\001\022\035\n\023inli" + + "ne_raw_document\030\006 \001(\014H\001\022>\n\nproperties\030\007 " + + "\003(\0132*.google.cloud.contentwarehouse.v1.P" + + "roperty\0224\n\013update_time\030\010 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013create_time\030\t \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n\026r" + + "aw_document_file_type\030\n \001(\01625.google.clo" + + "ud.contentwarehouse.v1.RawDocumentFileTy" + + "pe\022\025\n\rasync_enabled\030\014 \001(\010\022 \n\030text_extrac" + + "tion_disabled\030\023 \001(\010\022\017\n\007creator\030\r \001(\t\022\017\n\007" + + "updater\030\016 \001(\t:\272\001\352A\266\001\n(contentwarehouse.g" + + "oogleapis.com/Document\022\n\nproperties\030\001 \003(\0132*.google.c" + + "loud.contentwarehouse.v1.Property\"\260\001\n\013Ma" + + "pProperty\022I\n\006fields\030\001 \003(\01329.google.cloud" + + ".contentwarehouse.v1.MapProperty.FieldsE" + + "ntry\032V\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005valu" + + "e\030\002 \001(\0132\'.google.cloud.contentwarehouse." + + "v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013float_value\030\001 " + + "\001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022\026\n\014string_val" + + "ue\030\003 \001(\tH\000\022A\n\nenum_value\030\004 \001(\0132+.google." + + "cloud.contentwarehouse.v1.EnumValueH\000\022/\n" + + "\016datetime_value\030\005 \001(\0132\025.google.type.Date" + + "TimeH\000\022K\n\017timestamp_value\030\006 \001(\01320.google" + + ".cloud.contentwarehouse.v1.TimestampValu" + + "eH\000\022\027\n\rboolean_value\030\007 \001(\010H\000B\006\n\004kind\"\032\n\t" + + "EnumValue\022\r\n\005value\030\001 \001(\t*\341\001\n\023RawDocument" + + "FileType\022&\n\"RAW_DOCUMENT_FILE_TYPE_UNSPE" + + "CIFIED\020\000\022\036\n\032RAW_DOCUMENT_FILE_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_DOCUME" + + "NT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_DOCUMENT_FILE" + + "_TYPE_TEXT\020\005B\211\001\n$com.google.cloud.conten" + + "twarehouse.v1B\rDocumentProtoP\001ZPgoogle.g" + + "olang.org/genproto/googleapis/cloud/cont" + + "entwarehouse/v1;contentwarehouseb\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", "TextExtractionDisabled", "Creator", "Updater", "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", }); + 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 81% 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 aa02bbefa1bc..d8679ad83298 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,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -42,35 +28,32 @@ private DocumentQuery() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentQuery(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object query_; /** - * - * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -78,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string query = 1; - * * @return The query. */ @java.lang.Override @@ -87,15 +69,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.
@@ -103,15 +84,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 { @@ -122,8 +104,6 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int IS_NL_QUERY_FIELD_NUMBER = 12; private boolean isNlQuery_; /** - * - * *
    * Experimental, do not use.
    * If the query is a natural language question. False by default. If true,
@@ -134,7 +114,6 @@ public com.google.protobuf.ByteString getQueryBytes() {
    * 
* * bool is_nl_query = 12; - * * @return The isNlQuery. */ @java.lang.Override @@ -145,8 +124,6 @@ public boolean getIsNlQuery() { public static final int CUSTOM_PROPERTY_FILTER_FIELD_NUMBER = 4; 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
@@ -167,27 +144,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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
@@ -208,18 +182,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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 { @@ -230,8 +204,6 @@ public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { public static final int TIME_FILTERS_FIELD_NUMBER = 5; private java.util.List timeFilters_; /** - * - * *
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -244,8 +216,6 @@ public java.util.List getTimeFi
     return timeFilters_;
   }
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -254,13 +224,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.
@@ -273,8 +241,6 @@ public int getTimeFiltersCount() {
     return timeFilters_.size();
   }
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -287,8 +253,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.
@@ -305,8 +269,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
   public static final int DOCUMENT_SCHEMA_NAMES_FIELD_NUMBER = 6;
   private com.google.protobuf.LazyStringList documentSchemaNames_;
   /**
-   *
-   *
    * 
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -318,15 +280,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] of the documents to search against.
@@ -338,15 +298,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] of the documents to search against.
@@ -358,7 +315,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. */ @@ -366,8 +322,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] of the documents to search against.
@@ -379,19 +333,17 @@ 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; 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] marked as `true`. The relationship
@@ -401,13 +353,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] marked as `true`. The relationship
@@ -417,13 +366,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] marked as `true`. The relationship
@@ -437,8 +384,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] marked as `true`. The relationship
@@ -452,8 +397,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] marked as `true`. The relationship
@@ -471,8 +414,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
@@ -482,7 +423,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 @@ -490,8 +430,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
@@ -501,18 +439,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
@@ -531,8 +464,6 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
   public static final int FOLDER_NAME_FILTER_FIELD_NUMBER = 9;
   private volatile java.lang.Object folderNameFilter_;
   /**
-   *
-   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -540,7 +471,6 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
    * 
* * string folder_name_filter = 9; - * * @return The folderNameFilter. */ @java.lang.Override @@ -549,15 +479,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:
@@ -565,15 +494,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 { @@ -584,8 +514,6 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() { public static final int QUERY_CONTEXT_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList queryContext_; /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -597,15 +525,13 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() {
    * 
* * 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
@@ -617,15 +543,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
@@ -637,7 +560,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. */ @@ -645,8 +567,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
@@ -658,19 +578,17 @@ 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; private com.google.protobuf.LazyStringList documentCreatorFilter_; /** - * - * *
    * The exact creator(s) of the documents to search against.
    * If a value isn't specified, documents within the search results are
@@ -680,15 +598,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.
    * If a value isn't specified, documents within the search results are
@@ -698,15 +614,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.
    * If a value isn't specified, documents within the search results are
@@ -716,7 +629,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. */ @@ -724,8 +636,6 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** - * - * *
    * The exact creator(s) of the documents to search against.
    * If a value isn't specified, documents within the search results are
@@ -735,16 +645,15 @@ 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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -756,7 +665,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -782,8 +692,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_); @@ -804,7 +713,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; @@ -815,10 +725,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_); @@ -840,7 +752,8 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -850,27 +763,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.DocumentQuery)) { return super.equals(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; + 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 (hasFileTypeFilter() != other.hasFileTypeFilter()) return false; if (hasFileTypeFilter()) { - if (!getFileTypeFilter().equals(other.getFileTypeFilter())) return false; - } - if (!getFolderNameFilter().equals(other.getFolderNameFilter())) 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 (!getQueryContextList() + .equals(other.getQueryContextList())) return false; + if (!getDocumentCreatorFilterList() + .equals(other.getDocumentCreatorFilterList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -885,7 +807,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) { @@ -920,127 +843,125 @@ 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(); @@ -1082,9 +1003,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 @@ -1103,8 +1024,7 @@ 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); int from_bitField0_ = bitField0_; result.query_ = query_; result.isNlQuery_ = isNlQuery_; @@ -1156,39 +1076,38 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery 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.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; @@ -1196,8 +1115,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_; onChanged(); @@ -1227,10 +1145,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe timeFiltersBuilder_ = null; timeFilters_ = other.timeFilters_; bitField0_ = (bitField0_ & ~0x00000001); - timeFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimeFiltersFieldBuilder() - : null; + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeFiltersFieldBuilder() : null; } else { timeFiltersBuilder_.addAllMessages(other.timeFilters_); } @@ -1264,10 +1181,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe propertyFilterBuilder_ = null; propertyFilter_ = other.propertyFilter_; bitField0_ = (bitField0_ & ~0x00000004); - propertyFilterBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertyFilterFieldBuilder() - : null; + propertyFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertyFilterFieldBuilder() : null; } else { propertyFilterBuilder_.addAllMessages(other.propertyFilter_); } @@ -1326,92 +1242,83 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - query_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 34: - { - customPropertyFilter_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 66 - case 74: - { - folderNameFilter_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 34: { + customPropertyFilter_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 66 + case 74: { + folderNameFilter_ = input.readStringRequireUtf8(); + + 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(); + + 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) { @@ -1421,13 +1328,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.
@@ -1435,13 +1339,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; @@ -1450,8 +1354,6 @@ public java.lang.String getQuery() { } } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1459,14 +1361,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 { @@ -1474,8 +1377,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1483,22 +1384,20 @@ 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) { + public Builder setQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1506,18 +1405,15 @@ public Builder setQuery(java.lang.String value) {
      * 
* * string query = 1; - * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1525,25 +1421,23 @@ 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) { + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); 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,
@@ -1554,7 +1448,6 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * bool is_nl_query = 12; - * * @return The isNlQuery. */ @java.lang.Override @@ -1562,8 +1455,6 @@ public boolean getIsNlQuery() { return isNlQuery_; } /** - * - * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -1574,19 +1465,16 @@ public boolean getIsNlQuery() {
      * 
* * bool is_nl_query = 12; - * * @param value The isNlQuery to set. * @return This builder for chaining. */ public Builder setIsNlQuery(boolean value) { - + isNlQuery_ = value; onChanged(); return this; } /** - * - * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -1597,11 +1485,10 @@ public Builder setIsNlQuery(boolean value) {
      * 
* * bool is_nl_query = 12; - * * @return This builder for chaining. */ public Builder clearIsNlQuery() { - + isNlQuery_ = false; onChanged(); return this; @@ -1609,8 +1496,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
@@ -1631,16 +1516,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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; @@ -1649,8 +1533,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
@@ -1671,17 +1553,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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 { @@ -1689,8 +1571,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
@@ -1711,25 +1591,22 @@ 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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @param value The customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCustomPropertyFilter(java.lang.String value) { + @java.lang.Deprecated public Builder setCustomPropertyFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customPropertyFilter_ = value; onChanged(); return this; } /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -1750,21 +1627,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearCustomPropertyFilter() { - + @java.lang.Deprecated public Builder clearCustomPropertyFilter() { + customPropertyFilter_ = getDefaultInstance().getCustomPropertyFilter(); onChanged(); return this; } /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -1785,44 +1658,36 @@ 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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @param value The bytes for customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCustomPropertyFilterBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setCustomPropertyFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customPropertyFilter_ = value; onChanged(); return this; } private java.util.List timeFilters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimeFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - timeFilters_ = - new java.util.ArrayList(timeFilters_); + timeFilters_ = new java.util.ArrayList(timeFilters_); bitField0_ |= 0x00000001; - } + } } 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.
@@ -1838,8 +1703,6 @@ public java.util.List getTimeFi
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1855,8 +1718,6 @@ public int getTimeFiltersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1872,8 +1733,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1896,8 +1755,6 @@ public Builder setTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1917,8 +1774,6 @@ public Builder setTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1940,8 +1795,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.
@@ -1964,8 +1817,6 @@ public Builder addTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1985,8 +1836,6 @@ public Builder addTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2006,8 +1855,6 @@ public Builder addTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2019,7 +1866,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);
@@ -2027,8 +1875,6 @@ public Builder addAllTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2047,8 +1893,6 @@ public Builder clearTimeFilters() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2067,8 +1911,6 @@ public Builder removeTimeFilters(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2081,8 +1923,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.
@@ -2093,14 +1933,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.
@@ -2108,8 +1945,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 {
@@ -2117,8 +1954,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2127,12 +1962,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.
@@ -2142,12 +1975,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.
@@ -2155,40 +1986,33 @@ 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_ & 0x00000001) != 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_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         timeFilters_ = null;
       }
       return timeFiltersBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList documentSchemaNames_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureDocumentSchemaNamesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         documentSchemaNames_ = new com.google.protobuf.LazyStringArrayList(documentSchemaNames_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2200,15 +2024,13 @@ 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() { return documentSchemaNames_.getUnmodifiableView(); } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2220,15 +2042,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] of the documents to search against.
@@ -2240,7 +2059,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. */ @@ -2248,8 +2066,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] of the documents to search against.
@@ -2261,16 +2077,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] of the documents to search against.
@@ -2282,23 +2096,21 @@ 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) { + public Builder setDocumentSchemaNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemaNamesIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2310,22 +2122,20 @@ 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) { + public Builder addDocumentSchemaNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemaNamesIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2337,19 +2147,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2361,7 +2170,6 @@ public Builder addAllDocumentSchemaNames(java.lang.Iterable va
      * 
* * repeated string document_schema_names = 6; - * * @return This builder for chaining. */ public Builder clearDocumentSchemaNames() { @@ -2371,8 +2179,6 @@ public Builder clearDocumentSchemaNames() { return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2384,15 +2190,15 @@ 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) { + public Builder addDocumentSchemaNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); onChanged(); @@ -2400,26 +2206,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_ & 0x00000004) != 0)) { - propertyFilter_ = - new java.util.ArrayList( - propertyFilter_); + propertyFilter_ = new java.util.ArrayList(propertyFilter_); bitField0_ |= 0x00000004; - } + } } 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] marked as `true`. The relationship
@@ -2428,8 +2226,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 {
@@ -2437,8 +2234,6 @@ private void ensurePropertyFilterIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship
@@ -2455,8 +2250,6 @@ public int getPropertyFilterCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship
@@ -2473,8 +2266,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] marked as `true`. The relationship
@@ -2498,8 +2289,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] marked as `true`. The relationship
@@ -2520,8 +2309,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] marked as `true`. The relationship
@@ -2544,8 +2331,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] marked as `true`. The relationship
@@ -2569,8 +2354,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] marked as `true`. The relationship
@@ -2591,8 +2374,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] marked as `true`. The relationship
@@ -2613,8 +2394,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] marked as `true`. The relationship
@@ -2627,7 +2406,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);
@@ -2635,8 +2415,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] marked as `true`. The relationship
@@ -2656,8 +2434,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] marked as `true`. The relationship
@@ -2677,8 +2453,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] marked as `true`. The relationship
@@ -2692,8 +2466,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] marked as `true`. The relationship
@@ -2705,14 +2477,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] marked as `true`. The relationship
@@ -2721,8 +2490,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 {
@@ -2730,8 +2499,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] marked as `true`. The relationship
@@ -2741,12 +2508,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] marked as `true`. The relationship
@@ -2757,13 +2522,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] marked as `true`. The relationship
@@ -2772,22 +2534,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_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -2799,13 +2555,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
@@ -2815,15 +2566,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 fileTypeFilterBuilder_ != null || 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
@@ -2833,21 +2581,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
@@ -2872,8 +2615,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
@@ -2896,8 +2637,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
@@ -2912,9 +2651,7 @@ public Builder mergeFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileType
       if (fileTypeFilterBuilder_ == null) {
         if (fileTypeFilter_ != null) {
           fileTypeFilter_ =
-              com.google.cloud.contentwarehouse.v1.FileTypeFilter.newBuilder(fileTypeFilter_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter.newBuilder(fileTypeFilter_).mergeFrom(value).buildPartial();
         } else {
           fileTypeFilter_ = value;
         }
@@ -2926,8 +2663,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
@@ -2950,8 +2685,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
@@ -2963,13 +2696,11 @@ public Builder clearFileTypeFilter() {
      * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;
      */
     public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFilterBuilder() {
-
+      
       onChanged();
       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
@@ -2980,19 +2711,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
@@ -3004,17 +2731,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_;
@@ -3022,8 +2746,6 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
 
     private java.lang.Object folderNameFilter_ = "";
     /**
-     *
-     *
      * 
      * Search all the documents under this specified folder.
      * Format:
@@ -3031,13 +2753,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; @@ -3046,8 +2768,6 @@ public java.lang.String getFolderNameFilter() { } } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3055,14 +2775,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 { @@ -3070,8 +2791,6 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() { } } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3079,22 +2798,20 @@ 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) { + public Builder setFolderNameFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + folderNameFilter_ = value; onChanged(); return this; } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3102,18 +2819,15 @@ public Builder setFolderNameFilter(java.lang.String value) {
      * 
* * string folder_name_filter = 9; - * * @return This builder for chaining. */ public Builder clearFolderNameFilter() { - + folderNameFilter_ = getDefaultInstance().getFolderNameFilter(); onChanged(); return this; } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3121,33 +2835,29 @@ 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) { + public Builder setFolderNameFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folderNameFilter_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList queryContext_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList queryContext_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureQueryContextIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { queryContext_ = new com.google.protobuf.LazyStringArrayList(queryContext_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3159,15 +2869,13 @@ 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() { return queryContext_.getUnmodifiableView(); } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3179,15 +2887,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
@@ -3199,7 +2904,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. */ @@ -3207,8 +2911,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
@@ -3220,16 +2922,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
@@ -3241,23 +2941,21 @@ 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) { + public Builder setQueryContext( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueryContextIsMutable(); + throw new NullPointerException(); + } + ensureQueryContextIsMutable(); queryContext_.set(index, value); onChanged(); return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3269,22 +2967,20 @@ 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) { + public Builder addQueryContext( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueryContextIsMutable(); + throw new NullPointerException(); + } + ensureQueryContextIsMutable(); queryContext_.add(value); onChanged(); return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3296,19 +2992,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3320,7 +3015,6 @@ public Builder addAllQueryContext(java.lang.Iterable values) {
      * 
* * repeated string query_context = 10; - * * @return This builder for chaining. */ public Builder clearQueryContext() { @@ -3330,8 +3024,6 @@ public Builder clearQueryContext() { return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3343,34 +3035,29 @@ 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) { + public Builder addQueryContextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureQueryContextIsMutable(); queryContext_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList documentCreatorFilter_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDocumentCreatorFilterIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - documentCreatorFilter_ = - new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); + documentCreatorFilter_ = new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); bitField0_ |= 0x00000010; - } + } } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3380,15 +3067,13 @@ 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() { return documentCreatorFilter_.getUnmodifiableView(); } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3398,15 +3083,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.
      * If a value isn't specified, documents within the search results are
@@ -3416,7 +3098,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. */ @@ -3424,8 +3105,6 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3435,16 +3114,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.
      * If a value isn't specified, documents within the search results are
@@ -3454,23 +3131,21 @@ 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) { + public Builder setDocumentCreatorFilter( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentCreatorFilterIsMutable(); + throw new NullPointerException(); + } + ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.set(index, value); onChanged(); return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3480,22 +3155,20 @@ 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) { + public Builder addDocumentCreatorFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentCreatorFilterIsMutable(); + throw new NullPointerException(); + } + ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); onChanged(); return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3505,19 +3178,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3527,7 +3199,6 @@ public Builder addAllDocumentCreatorFilter(java.lang.Iterable
      * 
* * repeated string document_creator_filter = 11; - * * @return This builder for chaining. */ public Builder clearDocumentCreatorFilter() { @@ -3537,8 +3208,6 @@ public Builder clearDocumentCreatorFilter() { return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3548,23 +3217,23 @@ 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) { + public Builder addDocumentCreatorFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3574,12 +3243,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(); } @@ -3588,27 +3257,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; @@ -3623,4 +3292,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 89% 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 11a07f7d49b8..4686493f068e 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -33,13 +15,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.
@@ -47,14 +26,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,
@@ -65,14 +42,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
@@ -93,16 +67,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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
@@ -123,17 +93,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=59 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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.
@@ -141,10 +108,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.
@@ -154,8 +120,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.
@@ -165,8 +129,6 @@ public interface DocumentQueryOrBuilder
    */
   int getTimeFiltersCount();
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -174,11 +136,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.
@@ -186,11 +146,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] of the documents to search against.
@@ -202,13 +161,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] of the documents to search against.
@@ -220,13 +177,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] of the documents to search against.
@@ -238,14 +192,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] of the documents to search against.
@@ -257,15 +208,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] marked as `true`. The relationship
@@ -274,10 +223,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] marked as `true`. The relationship
@@ -288,8 +236,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] marked as `true`. The relationship
@@ -300,8 +246,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] marked as `true`. The relationship
@@ -310,11 +254,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] marked as `true`. The relationship
@@ -327,8 +269,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
@@ -338,13 +278,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
@@ -354,13 +291,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
@@ -374,8 +308,6 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
   com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder();
 
   /**
-   *
-   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -383,13 +315,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:
@@ -397,14 +326,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(); /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -416,13 +343,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
@@ -434,13 +359,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
@@ -452,14 +374,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
@@ -471,15 +390,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.
    * If a value isn't specified, documents within the search results are
@@ -489,13 +406,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.
    * If a value isn't specified, documents within the search results are
@@ -505,13 +420,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.
    * If a value isn't specified, documents within the search results are
@@ -521,14 +433,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.
    * If a value isn't specified, documents within the search results are
@@ -538,9 +447,9 @@ 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); } 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 66% 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 5caa29b7db05..cafd7e5cd85e 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,43 +27,37 @@ private DocumentReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,31 +66,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 { @@ -125,8 +99,6 @@ public com.google.protobuf.ByteString getDocumentNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 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
@@ -134,7 +106,6 @@ public com.google.protobuf.ByteString getDocumentNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -143,15 +114,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
@@ -159,15 +129,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 { @@ -178,8 +149,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SNIPPET_FIELD_NUMBER = 3; 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
@@ -187,7 +156,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string snippet = 3; - * * @return The snippet. */ @java.lang.Override @@ -196,15 +164,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
@@ -212,15 +179,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 { @@ -231,14 +199,11 @@ public com.google.protobuf.ByteString getSnippetBytes() { public static final int DOCUMENT_IS_FOLDER_FIELD_NUMBER = 4; private boolean documentIsFolder_; /** - * - * *
    * The document type of the document being referenced.
    * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ @java.lang.Override @@ -249,15 +214,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 @@ -265,15 +226,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 @@ -281,14 +238,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() { @@ -298,15 +252,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 @@ -314,15 +264,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 @@ -330,14 +276,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() { @@ -347,15 +290,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 @@ -363,15 +302,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 @@ -379,14 +314,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() { @@ -394,7 +326,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +337,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -447,16 +379,20 @@ 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()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -466,29 +402,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -508,7 +450,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(); @@ -527,136 +470,129 @@ public int hashCode() { } 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(); @@ -690,9 +626,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 @@ -711,8 +647,7 @@ 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); + com.google.cloud.contentwarehouse.v1.DocumentReference result = new com.google.cloud.contentwarehouse.v1.DocumentReference(this); result.documentName_ = documentName_; result.displayName_ = displayName_; result.snippet_ = snippet_; @@ -740,39 +675,38 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference 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.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; @@ -780,8 +714,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_; onChanged(); @@ -832,55 +765,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - documentName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - snippet_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - documentIsFolder_ = input.readBool(); - - break; - } // case 32 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + documentName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + snippet_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + documentIsFolder_ = input.readBool(); + + break; + } // case 32 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -893,22 +824,18 @@ public Builder mergeFrom( 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; @@ -917,23 +844,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 { @@ -941,67 +865,54 @@ 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) { + public Builder setDocumentName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentName_ = value; 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() { - + documentName_ = getDefaultInstance().getDocumentName(); 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) = { ... } * @param value The bytes for documentName to set. * @return This builder for chaining. */ - public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { + public Builder setDocumentNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentName_ = value; onChanged(); return this; @@ -1009,8 +920,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
@@ -1018,13 +927,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; @@ -1033,8 +942,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
@@ -1042,14 +949,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 { @@ -1057,8 +965,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
@@ -1066,22 +972,20 @@ 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) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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
@@ -1089,18 +993,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); 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
@@ -1108,16 +1009,16 @@ 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1125,8 +1026,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
@@ -1134,13 +1033,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; @@ -1149,8 +1048,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
@@ -1158,14 +1055,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 { @@ -1173,8 +1071,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
@@ -1182,22 +1078,20 @@ 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) { + public Builder setSnippet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snippet_ = value; onChanged(); return this; } /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1205,18 +1099,15 @@ public Builder setSnippet(java.lang.String value) {
      * 
* * string snippet = 3; - * * @return This builder for chaining. */ public Builder clearSnippet() { - + snippet_ = getDefaultInstance().getSnippet(); onChanged(); return this; } /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1224,31 +1115,28 @@ 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) { + public Builder setSnippetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snippet_ = value; onChanged(); 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 @@ -1256,36 +1144,30 @@ 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. */ public Builder setDocumentIsFolder(boolean value) { - + documentIsFolder_ = value; onChanged(); return this; } /** - * - * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; - * * @return This builder for chaining. */ public Builder clearDocumentIsFolder() { - + documentIsFolder_ = false; onChanged(); return this; @@ -1293,58 +1175,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1360,17 +1223,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(); onChanged(); @@ -1381,21 +1241,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1407,15 +1263,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() { if (updateTimeBuilder_ == null) { @@ -1429,64 +1281,48 @@ 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() { - + onChanged(); 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_; @@ -1494,58 +1330,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1561,17 +1378,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(); onChanged(); @@ -1582,21 +1396,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1608,15 +1418,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() { if (createTimeBuilder_ == null) { @@ -1630,64 +1436,48 @@ 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() { - + onChanged(); 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_; @@ -1695,58 +1485,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 deleteTimeBuilder_ != null || 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. */ 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) { @@ -1762,17 +1533,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(); onChanged(); @@ -1783,21 +1551,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 (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -1809,15 +1573,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() { if (deleteTimeBuilder_ == null) { @@ -1831,71 +1591,55 @@ 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() { - + onChanged(); 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1905,12 +1649,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(); } @@ -1919,27 +1663,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; @@ -1954,4 +1698,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 70% 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 de71ba359516..6e787bcd1e70 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,135 +70,99 @@ 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(); } 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 69% 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 268118e583af..216854037b71 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,35 +28,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the document schema.
    * Format:
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -92,15 +70,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:
@@ -109,15 +86,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 { @@ -128,14 +106,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. Name of the schema given by the user. Must be unique per customer.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -144,29 +119,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 customer.
    * 
* * 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 { @@ -175,94 +150,74 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int PROPERTY_DEFINITIONS_FIELD_NUMBER = 3; - 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_; /** - * - * *
    * 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 @@ -273,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 @@ -289,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 @@ -305,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() { @@ -322,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 @@ -338,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 @@ -354,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() { @@ -371,14 +304,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 7; private volatile java.lang.Object description_; /** - * - * *
    * Schema description.
    * 
* * string description = 7; - * * @return The description. */ @java.lang.Override @@ -387,29 +317,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 { @@ -418,7 +348,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -430,7 +359,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -468,17 +398,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_); @@ -491,27 +424,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; } @@ -532,7 +471,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(); @@ -549,135 +489,129 @@ 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 +646,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,8 +667,7 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -767,39 +700,38 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema 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.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; @@ -807,8 +739,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_; onChanged(); @@ -835,10 +766,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentSchema oth 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_); } @@ -883,63 +813,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 32 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 32 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + description_ = input.readStringRequireUtf8(); + + 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) { @@ -949,13 +875,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -964,13 +887,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; @@ -979,8 +902,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -989,14 +910,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 { @@ -1004,8 +926,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1014,22 +934,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1038,18 +956,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1058,16 +973,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1075,20 +990,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 customer.
      * 
* * 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; @@ -1097,21 +1010,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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 { @@ -1119,96 +1031,79 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); 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_ & 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_; /** - * - * *
      * 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 { @@ -1216,14 +1111,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) { @@ -1233,17 +1125,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 { @@ -1251,14 +1139,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) { @@ -1275,18 +1160,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()); @@ -1297,17 +1178,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(); @@ -1321,14 +1198,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) { @@ -1345,14 +1219,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) { @@ -1366,18 +1237,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()); @@ -1388,21 +1255,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); @@ -1410,14 +1274,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) { @@ -1430,14 +1291,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) { @@ -1450,50 +1308,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 { @@ -1501,62 +1348,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_ & 0x00000001) != 0), getParentForChildren(), @@ -1566,17 +1396,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 @@ -1584,38 +1411,32 @@ 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. */ public Builder setDocumentIsFolder(boolean value) { - + documentIsFolder_ = value; onChanged(); 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() { - + documentIsFolder_ = false; onChanged(); return this; @@ -1623,58 +1444,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1690,17 +1492,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(); onChanged(); @@ -1711,21 +1510,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1737,15 +1532,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() { if (updateTimeBuilder_ == null) { @@ -1759,64 +1550,48 @@ 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() { - + onChanged(); 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_; @@ -1824,58 +1599,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1891,17 +1647,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(); onChanged(); @@ -1912,21 +1665,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1938,15 +1687,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() { if (createTimeBuilder_ == null) { @@ -1960,64 +1705,48 @@ 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() { - + onChanged(); 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_; @@ -2025,20 +1754,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; @@ -2047,21 +1774,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 { @@ -2069,68 +1795,61 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Schema description.
      * 
* * string description = 7; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override - 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,12 +1859,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(); } @@ -2154,27 +1873,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; @@ -2189,4 +1908,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 7a7528eb8b73..4daba0266261 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -34,13 +16,10 @@ public interface DocumentSchemaOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the document schema.
    * Format:
@@ -49,207 +28,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 customer.
    * 
* * 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 customer.
    * 
* * 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..2680b776f702 --- /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,205 @@ +// 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_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\"\252\003\n\016DocumentSche" + + "ma\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022R\n\024property_definitions\030\003 \003(\01324.goog" + + "le.cloud.contentwarehouse.v1.PropertyDef" + + "inition\022\032\n\022document_is_folder\030\004 \001(\010\0224\n\013u" + + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\023\n\013description\030\007" + + " \001(\t:~\352A{\n.contentwarehouse.googleapis.c" + + "om/DocumentSchema\022Iprojects/{project}/lo" + + "cations/{location}/documentSchemas/{docu" + + "ment_schema}\"\343\006\n\022PropertyDefinition\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\014 \001(\t\022\025\n\r" + + "is_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_metadata" + + "\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022T\n\024integer_t" + + "ype_options\030\007 \001(\01324.google.cloud.content" + + "warehouse.v1.IntegerTypeOptionsH\000\022P\n\022flo" + + "at_type_options\030\010 \001(\01322.google.cloud.con" + + "tentwarehouse.v1.FloatTypeOptionsH\000\022N\n\021t" + + "ext_type_options\030\t \001(\01321.google.cloud.co" + + "ntentwarehouse.v1.TextTypeOptionsH\000\022V\n\025p" + + "roperty_type_options\030\n \001(\01325.google.clou" + + "d.contentwarehouse.v1.PropertyTypeOption" + + "sH\000\022N\n\021enum_type_options\030\013 \001(\01321.google." + + "cloud.contentwarehouse.v1.EnumTypeOption" + + "sH\000\022W\n\026date_time_type_options\030\r \001(\01325.go" + + "ogle.cloud.contentwarehouse.v1.DateTimeT" + + "ypeOptionsH\000\022L\n\020map_type_options\030\017 \001(\01320" + + ".google.cloud.contentwarehouse.v1.MapTyp" + + "eOptionsH\000\022X\n\026timestamp_type_options\030\020 \001" + + "(\01326.google.cloud.contentwarehouse.v1.Ti" + + "mestampTypeOptionsH\000B\024\n\022value_type_optio" + + "ns\"\024\n\022IntegerTypeOptions\"\022\n\020FloatTypeOpt" + + "ions\"\021\n\017TextTypeOptions\"\025\n\023DateTimeTypeO" + + "ptions\"\020\n\016MapTypeOptions\"\026\n\024TimestampTyp" + + "eOptions\"n\n\023PropertyTypeOptions\022W\n\024prope" + + "rty_definitions\030\001 \003(\01324.google.cloud.con" + + "tentwarehouse.v1.PropertyDefinitionB\003\340A\002" + + "\"R\n\017EnumTypeOptions\022\034\n\017possible_values\030\001" + + " \003(\tB\003\340A\002\022!\n\031validation_check_disabled\030\002" + + " \001(\010B\217\001\n$com.google.cloud.contentwarehou" + + "se.v1B\023DocumentSchemaProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/conten" + + "twarehouse/v1;contentwarehouseb\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", "IntegerTypeOptions", "FloatTypeOptions", "TextTypeOptions", "PropertyTypeOptions", "EnumTypeOptions", "DateTimeTypeOptions", "MapTypeOptions", "TimestampTypeOptions", "ValueTypeOptions", }); + 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..2045691e11f8 --- /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,184 @@ +// 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\"\257\001\n\033CreateDocumentSch" + + "emaRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(cont" + + "entwarehouse.googleapis.com/Location\022N\n\017" + + "document_schema\030\002 \001(\01320.google.cloud.con" + + "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"`\n\030" + + "GetDocumentSchemaRequest\022D\n\004name\030\001 \001(\tB6" + + "\340A\002\372A0\n.contentwarehouse.googleapis.com/" + + "DocumentSchema\"\263\001\n\033UpdateDocumentSchemaR" + + "equest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.contentwar" + + "ehouse.googleapis.com/DocumentSchema\022N\n\017" + + "document_schema\030\002 \001(\01320.google.cloud.con" + + "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"c\n\033" + + "DeleteDocumentSchemaRequest\022D\n\004name\030\001 \001(" + + "\tB6\340A\002\372A0\n.contentwarehouse.googleapis.c" + + "om/DocumentSchema\"\205\001\n\032ListDocumentSchema" + + "sRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(conten" + + "twarehouse.googleapis.com/Location\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\033Li" + + "stDocumentSchemasResponse\022J\n\020document_sc" + + "hemas\030\001 \003(\01320.google.cloud.contentwareho" + + "use.v1.DocumentSchema\022\027\n\017next_page_token" + + "\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022\356\001\n\024Cre" + + "ateDocumentSchema\022=.google.cloud.content" + + "warehouse.v1.CreateDocumentSchemaRequest" + + "\0320.google.cloud.contentwarehouse.v1.Docu" + + "mentSchema\"e\202\323\344\223\002F\"3/v1/{parent=projects" + + "/*/locations/*}/documentSchemas:\017documen" + + "t_schema\332A\026parent,document_schema\022\336\001\n\024Up" + + "dateDocumentSchema\022=.google.cloud.conten" + + "twarehouse.v1.UpdateDocumentSchemaReques" + + "t\0320.google.cloud.contentwarehouse.v1.Doc" + + "umentSchema\"U\202\323\344\223\002823/v1/{name=projects/" + + "*/locations/*/documentSchemas/*}:\001*\332A\024na" + + "me,document_schema\022\305\001\n\021GetDocumentSchema" + + "\022:.google.cloud.contentwarehouse.v1.GetD" + + "ocumentSchemaRequest\0320.google.cloud.cont" + + "entwarehouse.v1.DocumentSchema\"B\202\323\344\223\0025\0223" + + "/v1/{name=projects/*/locations/*/documen" + + "tSchemas/*}\332A\004name\022\261\001\n\024DeleteDocumentSch" + + "ema\022=.google.cloud.contentwarehouse.v1.D" + + "eleteDocumentSchemaRequest\032\026.google.prot" + + "obuf.Empty\"B\202\323\344\223\0025*3/v1/{name=projects/*" + + "/locations/*/documentSchemas/*}\332A\004name\022\330" + + "\001\n\023ListDocumentSchemas\022<.google.cloud.co" + + "ntentwarehouse.v1.ListDocumentSchemasReq" + + "uest\032=.google.cloud.contentwarehouse.v1." + + "ListDocumentSchemasResponse\"D\202\323\344\223\0025\0223/v1" + + "/{parent=projects/*/locations/*}/documen" + + "tSchemas\332A\006parent\032S\312A\037contentwarehouse.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\226\001\n$com.google.cl" + + "oud.contentwarehouse.v1B\032DocumentSchemaS" + + "erviceProtoP\001ZPgoogle.golang.org/genprot" + + "o/googleapis/cloud/contentwarehouse/v1;c" + + "ontentwarehouseb\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..9a4c2f50cdb6 --- /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,246 @@ +// 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\033google/protobu" + + "f/empty.proto\"\354\001\n\026CreateDocumentResponse" + + "\022<\n\010document\030\001 \001(\0132*.google.cloud.conten" + + "twarehouse.v1.Document\022N\n\022rule_engine_ou" + + "tput\030\002 \001(\01322.google.cloud.contentwarehou" + + "se.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\013" + + "22.google.cloud.contentwarehouse.v1.Resp" + + "onseMetadata\"\354\001\n\026UpdateDocumentResponse\022" + + "<\n\010document\030\001 \001(\0132*.google.cloud.content" + + "warehouse.v1.Document\022N\n\022rule_engine_out" + + "put\030\002 \001(\01322.google.cloud.contentwarehous" + + "e.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\0132" + + "2.google.cloud.contentwarehouse.v1.Respo" + + "nseMetadata\"\243\001\n\010QAResult\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\"\374\003\n\027SearchDocumentsRes" + + "ponse\022f\n\022matching_documents\030\001 \003(\0132J.goog" + + "le.cloud.contentwarehouse.v1.SearchDocum" + + "entsResponse.MatchingDocument\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\022D\n\010me" + + "tadata\030\004 \001(\01322.google.cloud.contentwareh" + + "ouse.v1.ResponseMetadata\022W\n\027histogram_qu" + + "ery_results\030\006 \003(\01326.google.cloud.content" + + "warehouse.v1.HistogramQueryResult\032\254\001\n\020Ma" + + "tchingDocument\022<\n\010document\030\001 \001(\0132*.googl" + + "e.cloud.contentwarehouse.v1.Document\022\033\n\023" + + "search_text_snippet\030\002 \001(\t\022=\n\tqa_result\030\003" + + " \001(\0132*.google.cloud.contentwarehouse.v1." + + "QAResult\"\177\n\020FetchAclResponse\022%\n\006policy\030\001" + + " \001(\0132\025.google.iam.v1.Policy\022D\n\010metadata\030" + + "\002 \001(\01322.google.cloud.contentwarehouse.v1" + + ".ResponseMetadata\"}\n\016SetAclResponse\022%\n\006p" + + "olicy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010me" + + "tadata\030\002 \001(\01322.google.cloud.contentwareh" + + "ouse.v1.ResponseMetadata2\350\r\n\017DocumentSer" + + "vice\022\317\001\n\016CreateDocument\0227.google.cloud.c" + + "ontentwarehouse.v1.CreateDocumentRequest" + + "\0328.google.cloud.contentwarehouse.v1.Crea" + + "teDocumentResponse\"J\202\323\344\223\0022\"-/v1/{parent=" + + "projects/*/locations/*}/documents:\001*\332A\017p" + + "arent,document\022\371\001\n\013GetDocument\0224.google." + + "cloud.contentwarehouse.v1.GetDocumentReq" + + "uest\032*.google.cloud.contentwarehouse.v1." + + "Document\"\207\001\202\323\344\223\002z\"1/v1/{name=projects/*/" + + "locations/*/documents/*}:get:\001*ZB\"=/v1/{" + + "name=projects/*/locations/*/documents/re" + + "ferenceId/*}:get:\001*\332A\004name\022\216\002\n\016UpdateDoc" + + "ument\0227.google.cloud.contentwarehouse.v1" + + ".UpdateDocumentRequest\0328.google.cloud.co" + + "ntentwarehouse.v1.UpdateDocumentResponse" + + "\"\210\001\202\323\344\223\002r2-/v1/{name=projects/*/location" + + "s/*/documents/*}:\001*Z>29/v1/{name=project" + + "s/*/locations/*/documents/referenceId/*}" + + ":\001*\332A\rname,document\022\362\001\n\016DeleteDocument\0227" + + ".google.cloud.contentwarehouse.v1.Delete" + + "DocumentRequest\032\026.google.protobuf.Empty\"" + + "\216\001\202\323\344\223\002\200\001\"4/v1/{name=projects/*/location" + + "s/*/documents/*}:delete:\001*ZE\"@/v1/{name=" + + "projects/*/locations/*/documents/referen" + + "ceId/*}:delete:\001*\332A\004name\022\320\001\n\017SearchDocum" + + "ents\0228.google.cloud.contentwarehouse.v1." + + "SearchDocumentsRequest\0329.google.cloud.co" + + "ntentwarehouse.v1.SearchDocumentsRespons" + + "e\"H\202\323\344\223\0029\"4/v1/{parent=projects/*/locati" + + "ons/*}/documents:search:\001*\332A\006parent\022\354\001\n\010" + + "FetchAcl\0221.google.cloud.contentwarehouse" + + ".v1.FetchAclRequest\0322.google.cloud.conte" + + "ntwarehouse.v1.FetchAclResponse\"y\202\323\344\223\002h\"" + + ":/v1/{resource=projects/*/locations/*/do" + + "cuments/*}:fetchAcl:\001*Z\'\"\"/v1/{resource=" + + "projects/*}:fetchAcl:\001*\332A\010resource\022\351\001\n\006S" + + "etAcl\022/.google.cloud.contentwarehouse.v1" + + ".SetAclRequest\0320.google.cloud.contentwar" + + "ehouse.v1.SetAclResponse\"|\202\323\344\223\002d\"8/v1/{r" + + "esource=projects/*/locations/*/documents" + + "/*}:setAcl:\001*Z%\" /v1/{resource=projects/" + + "*}:setAcl:\001*\332A\017resource,policy\032S\312A\037conte" + + "ntwarehouse.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformB\220\001\n$" + + "com.google.cloud.contentwarehouse.v1B\024Do" + + "cumentServiceProtoP\001ZPgoogle.golang.org/" + + "genproto/googleapis/cloud/contentwarehou" + + "se/v1;contentwarehouseb\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.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", }); + 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", }); + 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.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..2283d3a959d2 --- /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,225 @@ +// 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_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\"\234\003\n\025Cr" + + "eateDocumentRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" + + "\372A*\n(contentwarehouse.googleapis.com/Loc" + + "ation\022A\n\010document\030\002 \001(\0132*.google.cloud.c" + + "ontentwarehouse.v1.DocumentB\003\340A\002\022K\n\020requ" + + "est_metadata\030\003 \001(\01321.google.cloud.conten" + + "twarehouse.v1.RequestMetadata\022%\n\006policy\030" + + "\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_ai" + + "_document_option\030\005 \001(\01327.google.cloud.co" + + "ntentwarehouse.v1.CloudAIDocumentOption\022" + + "/\n\013create_mask\030\006 \001(\0132\032.google.protobuf.F" + + "ieldMask\"\241\001\n\022GetDocumentRequest\022>\n\004name\030" + + "\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.googleap" + + "is.com/Document\022K\n\020request_metadata\030\002 \001(" + + "\01321.google.cloud.contentwarehouse.v1.Req" + + "uestMetadata\"\213\003\n\025UpdateDocumentRequest\022>" + + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.g" + + "oogleapis.com/Document\022A\n\010document\030\002 \001(\013" + + "2*.google.cloud.contentwarehouse.v1.Docu" + + "mentB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" + + "ogle.cloud.contentwarehouse.v1.RequestMe" + + "tadata\022Y\n\030cloud_ai_document_option\030\005 \001(\013" + + "27.google.cloud.contentwarehouse.v1.Clou" + + "dAIDocumentOption\022G\n\016update_options\030\006 \001(" + + "\0132/.google.cloud.contentwarehouse.v1.Upd" + + "ateOptions\"\244\001\n\025DeleteDocumentRequest\022>\n\004" + + "name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.goo" + + "gleapis.com/Document\022K\n\020request_metadata" + + "\030\002 \001(\01321.google.cloud.contentwarehouse.v" + + "1.RequestMetadata\"\271\003\n\026SearchDocumentsReq" + + "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwar" + + "ehouse.googleapis.com/Location\022K\n\020reques" + + "t_metadata\030\003 \001(\01321.google.cloud.contentw" + + "arehouse.v1.RequestMetadata\022G\n\016document_" + + "query\030\004 \001(\0132/.google.cloud.contentwareho" + + "use.v1.DocumentQuery\022\016\n\006offset\030\005 \001(\005\022\021\n\t" + + "page_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001(\t\022\020\n\010o" + + "rder_by\030\010 \001(\t\022K\n\021histogram_queries\030\t \003(\013" + + "20.google.cloud.contentwarehouse.v1.Hist" + + "ogramQuery\022\032\n\022require_total_size\030\n \001(\010\022\025" + + "\n\rqa_size_limit\030\013 \001(\005\"\214\001\n\017FetchAclReques" + + "t\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022K\n\020request_meta" + + "data\030\002 \001(\01321.google.cloud.contentwarehou" + + "se.v1.RequestMetadata\022\025\n\rproject_owner\030\003" + + " \001(\010\"\266\001\n\rSetAclRequest\022\025\n\010resource\030\001 \001(\t" + + "B\003\340A\002\022*\n\006policy\030\002 \001(\0132\025.google.iam.v1.Po" + + "licyB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" + + "ogle.cloud.contentwarehouse.v1.RequestMe" + + "tadata\022\025\n\rproject_owner\030\004 \001(\010B\227\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\033Document" + + "ServiceRequestProtoP\001ZPgoogle.golang.org" + + "/genproto/googleapis/cloud/contentwareho" + + "use/v1;contentwarehouseb\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", "QaSizeLimit", }); + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + 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(7); + 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 cd222931fec7..e65fe9df1b95 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,111 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnumArray(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private com.google.protobuf.LazyStringList values_; /** - * - * *
    * 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. */ @@ -113,23 +86,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; @@ -141,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -170,15 +141,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; } @@ -199,136 +170,130 @@ 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(); @@ -338,9 +303,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_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 @@ -359,8 +324,7 @@ 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); + com.google.cloud.contentwarehouse.v1.EnumArray result = new com.google.cloud.contentwarehouse.v1.EnumArray(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -375,39 +339,38 @@ public com.google.cloud.contentwarehouse.v1.EnumArray 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.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; @@ -452,20 +415,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) { @@ -475,55 +436,44 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); 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() { return values_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -531,90 +481,80 @@ 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) { + public Builder setValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); 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) { + public Builder addValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); 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_); onChanged(); return this; } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -624,30 +564,28 @@ public Builder clearValues() { 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) { + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +595,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(); } @@ -671,27 +609,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; @@ -706,4 +644,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 19bd9c8ec58b..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 71% 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 89f9791e6582..2d65911c28b3 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,111 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnumTypeOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private com.google.protobuf.LazyStringList possibleValues_; /** - * - * *
    * 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. */ @@ -113,26 +86,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_; /** - * - * *
    * Make sure the Enum property value provided in the document is in the
    * possile value list during document creation. The validation check runs by
@@ -140,7 +109,6 @@ public com.google.protobuf.ByteString getPossibleValuesBytes(int index) {
    * 
* * bool validation_check_disabled = 2; - * * @return The validationCheckDisabled. */ @java.lang.Override @@ -149,7 +117,6 @@ public boolean getValidationCheckDisabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +128,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -186,7 +154,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; @@ -196,16 +165,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; } @@ -222,142 +192,137 @@ 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(); @@ -369,9 +334,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_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 @@ -390,8 +355,7 @@ 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); + com.google.cloud.contentwarehouse.v1.EnumTypeOptions result = new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { possibleValues_ = possibleValues_.getUnmodifiableView(); @@ -407,39 +371,38 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions 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.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; @@ -447,8 +410,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_; @@ -488,26 +450,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(); - - 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(); + + 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) { @@ -517,55 +476,44 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList possibleValues_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList possibleValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePossibleValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { possibleValues_ = new com.google.protobuf.LazyStringArrayList(possibleValues_); 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() { return possibleValues_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -573,90 +521,80 @@ 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) { + public Builder setPossibleValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePossibleValuesIsMutable(); + throw new NullPointerException(); + } + ensurePossibleValuesIsMutable(); possibleValues_.set(index, value); onChanged(); 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) { + public Builder addPossibleValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePossibleValuesIsMutable(); + throw new NullPointerException(); + } + ensurePossibleValuesIsMutable(); possibleValues_.add(value); onChanged(); 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_); 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() { @@ -666,32 +604,28 @@ public Builder clearPossibleValues() { 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) { + public Builder addPossibleValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePossibleValuesIsMutable(); possibleValues_.add(value); onChanged(); 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
@@ -699,7 +633,6 @@ public Builder addPossibleValuesBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validation_check_disabled = 2; - * * @return The validationCheckDisabled. */ @java.lang.Override @@ -707,8 +640,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
@@ -716,19 +647,16 @@ public boolean getValidationCheckDisabled() {
      * 
* * bool validation_check_disabled = 2; - * * @param value The validationCheckDisabled to set. * @return This builder for chaining. */ public Builder setValidationCheckDisabled(boolean value) { - + validationCheckDisabled_ = value; onChanged(); 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
@@ -736,18 +664,17 @@ public Builder setValidationCheckDisabled(boolean value) {
      * 
* * bool validation_check_disabled = 2; - * * @return This builder for chaining. */ public Builder clearValidationCheckDisabled() { - + validationCheckDisabled_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -757,12 +684,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(); } @@ -771,27 +698,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; @@ -806,4 +733,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 5137a7bdc732..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 65% 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 e3615bc8aa61..e91aa4619145 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,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -87,30 +65,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 { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -155,15 +133,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; } @@ -182,136 +160,130 @@ 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(); @@ -321,9 +293,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 @@ -342,8 +314,7 @@ 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); + com.google.cloud.contentwarehouse.v1.EnumValue result = new com.google.cloud.contentwarehouse.v1.EnumValue(this); result.value_ = value_; onBuilt(); return result; @@ -353,39 +324,38 @@ public com.google.cloud.contentwarehouse.v1.EnumValue 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.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; @@ -424,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + + 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,21 +417,19 @@ public Builder mergeFrom( 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; @@ -472,22 +438,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 { @@ -495,71 +460,64 @@ 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) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; 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() { - + value_ = getDefaultInstance().getValue(); onChanged(); 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) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + 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); } @@ -569,12 +527,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(); } @@ -583,27 +541,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; @@ -618,4 +576,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 15b36d6be203..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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/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 e55f3c156a1d..36edec33d1b5 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object resource_; /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -80,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -89,15 +67,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:
@@ -106,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 { @@ -125,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 @@ -141,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.
@@ -169,23 +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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 3;
   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 @@ -194,7 +158,6 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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_); } @@ -229,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; @@ -242,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; } @@ -274,142 +242,137 @@ 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(); @@ -427,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 @@ -448,8 +411,7 @@ 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); + com.google.cloud.contentwarehouse.v1.FetchAclRequest result = new com.google.cloud.contentwarehouse.v1.FetchAclRequest(this); result.resource_ = resource_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -465,39 +427,38 @@ public com.google.cloud.contentwarehouse.v1.FetchAclRequest 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.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; @@ -505,8 +466,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_; onChanged(); @@ -543,31 +503,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - projectOwner_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + projectOwner_ = input.readBool(); + + 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) { @@ -580,8 +538,6 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -590,13 +546,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; @@ -605,8 +561,6 @@ public java.lang.String getResource() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -615,14 +569,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 { @@ -630,8 +585,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -640,22 +593,20 @@ 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) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -664,18 +615,15 @@ public Builder setResource(java.lang.String value) {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -684,16 +632,16 @@ 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) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -701,49 +649,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -765,8 +700,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.
@@ -786,8 +719,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -795,14 +726,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -814,8 +742,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -835,8 +761,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -844,15 +768,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -860,19 +781,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.
@@ -881,33 +798,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 @@ -915,45 +826,39 @@ 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. */ public Builder setProjectOwner(boolean value) { - + projectOwner_ = value; onChanged(); 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() { - + projectOwner_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -963,12 +868,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(); } @@ -977,27 +882,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; @@ -1012,4 +917,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 75% 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 a6182fb31c13..dd0b341f1608 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -34,13 +16,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:
@@ -49,40 +28,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.
@@ -93,15 +64,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 70% 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 d1cbc34d7e65..f70fd758bf13 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,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -83,14 +62,11 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ @java.lang.Override @@ -98,8 +74,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * The IAM policy.
    * 
@@ -114,15 +88,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 @@ -130,26 +101,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.
@@ -163,7 +127,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -175,7 +138,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -192,10 +156,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;
@@ -205,21 +171,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;
@@ -246,136 +213,129 @@ 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(); @@ -395,9 +355,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 @@ -416,8 +376,7 @@ 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); + com.google.cloud.contentwarehouse.v1.FetchAclResponse result = new com.google.cloud.contentwarehouse.v1.FetchAclResponse(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -436,39 +395,38 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse 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.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; @@ -476,8 +434,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()); } @@ -510,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - - 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); + + break; + } // case 10 + case 18: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -541,33 +499,24 @@ public Builder mergeFrom( 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 policyBuilder_ != null || policy_ != null; } /** - * - * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -578,8 +527,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * The IAM policy.
      * 
@@ -600,15 +547,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(); onChanged(); @@ -619,8 +565,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { return this; } /** - * - * *
      * The IAM policy.
      * 
@@ -630,7 +574,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { - policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + policy_ = + com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -642,8 +587,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
      * The IAM policy.
      * 
@@ -662,8 +605,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * The IAM policy.
      * 
@@ -671,13 +612,11 @@ public Builder clearPolicy() { * .google.iam.v1.Policy policy = 1; */ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The IAM policy.
      * 
@@ -688,12 +627,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.
      * 
@@ -701,16 +639,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_; @@ -718,49 +654,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 metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * 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.
@@ -782,8 +705,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -803,8 +724,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -816,9 +735,7 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -830,8 +747,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 +766,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -861,13 +774,11 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -879,14 +790,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 +803,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 +827,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();
   }
@@ -936,27 +841,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;
@@ -971,4 +876,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 fad6ccd7fcc8..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 65%
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 545637abeaef..0b992d325fd4 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,85 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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.
      * 
@@ -88,8 +66,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ FILE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Returns all document types, including folders.
      * 
@@ -98,8 +74,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ ALL(1), /** - * - * *
      * Returns only folders.
      * 
@@ -108,8 +82,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ FOLDER(2), /** - * - * *
      * Returns only non-folder documents.
      * 
@@ -121,8 +93,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default document type. If set, disables the filter.
      * 
@@ -131,8 +101,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FILE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Returns all document types, including folders.
      * 
@@ -141,8 +109,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALL_VALUE = 1; /** - * - * *
      * Returns only folders.
      * 
@@ -151,8 +117,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOLDER_VALUE = 2; /** - * - * *
      * Returns only non-folder documents.
      * 
@@ -161,6 +125,7 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOCUMENT_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,53 +150,50 @@ 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; + 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; @@ -251,43 +213,31 @@ private FileType(int value) { public static final int FILE_TYPE_FIELD_NUMBER = 1; private int fileType_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.valueOf(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.valueOf(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; @@ -299,10 +249,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); @@ -314,10 +263,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; @@ -327,13 +275,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; @@ -355,135 +302,129 @@ 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(); @@ -493,9 +434,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 @@ -514,8 +455,7 @@ 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); + com.google.cloud.contentwarehouse.v1.FileTypeFilter result = new com.google.cloud.contentwarehouse.v1.FileTypeFilter(this); result.fileType_ = fileType_; onBuilt(); return result; @@ -525,39 +465,38 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.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; @@ -565,8 +504,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()); } @@ -596,19 +534,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - fileType_ = input.readEnum(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + fileType_ = input.readEnum(); + + 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,67 +557,51 @@ public Builder mergeFrom( 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. */ public Builder setFileTypeValue(int value) { - + fileType_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.valueOf(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.valueOf(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. */ @@ -689,31 +609,28 @@ public Builder setFileType(com.google.cloud.contentwarehouse.v1.FileTypeFilter.F if (value == null) { throw new NullPointerException(); } - + fileType_ = value.getNumber(); onChanged(); 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() { - + fileType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -723,12 +640,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(); } @@ -737,27 +654,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; @@ -772,4 +689,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 e3f0c2c8fd9a..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..e0f54ed892db --- /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,118 @@ +// 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; + + 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\"\245\003\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\025\n\rquery_conte" + + "xt\030\n \003(\t\022\037\n\027document_creator_filter\030\013 \003(" + + "\t\"\316\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\"I\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\"v\n\016PropertyFilter\022Q\n\024document" + + "_schema_name\030\001 \001(\tB3\372A0\n.contentwarehous" + + "e.googleapis.com/DocumentSchema\022\021\n\tcondi" + + "tion\030\002 \001(\t\"\250\001\n\016FileTypeFilter\022L\n\tfile_ty" + + "pe\030\001 \001(\01629.google.cloud.contentwarehouse" + + ".v1.FileTypeFilter.FileType\"H\n\010FileType\022" + + "\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006F" + + "OLDER\020\002\022\014\n\010DOCUMENT\020\003B\210\001\n$com.google.clo" + + "ud.contentwarehouse.v1B\014FiltersProtoP\001ZP" + + "google.golang.org/genproto/googleapis/cl" + + "oud/contentwarehouse/v1;contentwarehouse" + + "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", "QueryContext", "DocumentCreatorFilter", }); + 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", }); + 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 fbafb30b4ef4..9453e48e12d0 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,123 +1,94 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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; @@ -129,7 +100,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); @@ -153,7 +125,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; } @@ -165,15 +138,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; } @@ -194,136 +167,130 @@ 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(); @@ -333,9 +300,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 @@ -354,8 +321,7 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); @@ -370,39 +336,38 @@ public com.google.cloud.contentwarehouse.v1.FloatArray 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.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; @@ -410,8 +375,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_; @@ -448,31 +412,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) { @@ -482,56 +443,45 @@ 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_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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. */ @@ -539,33 +489,28 @@ 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); onChanged(); return this; } /** - * - * *
      * List of float values.
      * 
* * repeated float values = 1; - * * @param value The values to add. * @return This builder for chaining. */ @@ -576,32 +521,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() { @@ -610,9 +551,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); } @@ -622,12 +563,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(); } @@ -636,27 +577,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; @@ -671,4 +612,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 af018fae596f..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 63e8a563faee..f0db6963a407 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,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,136 +102,129 @@ 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(); @@ -258,9 +232,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 @@ -279,8 +253,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; } @@ -289,39 +262,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; @@ -329,8 +301,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; @@ -357,13 +328,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) { @@ -373,9 +343,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); } @@ -385,12 +355,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(); } @@ -399,27 +369,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; @@ -434,4 +404,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/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 68% 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 6ed24e58154d..aee5827c2ea6 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -79,10 +58,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 @@ -91,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; } } /** - * - * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -107,18 +82,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 { @@ -129,15 +103,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 @@ -145,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.
@@ -173,13 +137,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,7 +153,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -211,7 +174,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;
@@ -221,18 +185,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;
@@ -257,136 +222,129 @@ 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(); @@ -402,9 +360,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 @@ -423,8 +381,7 @@ 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); + com.google.cloud.contentwarehouse.v1.GetDocumentRequest result = new com.google.cloud.contentwarehouse.v1.GetDocumentRequest(this); result.name_ = name_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -439,39 +396,38 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentRequest 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.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; @@ -479,8 +435,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_; onChanged(); @@ -514,25 +469,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -545,8 +499,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -554,16 +506,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; @@ -572,8 +522,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -581,17 +529,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 { @@ -599,8 +546,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -608,25 +553,21 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -634,21 +575,16 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -656,19 +592,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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -676,49 +610,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -740,8 +661,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.
@@ -761,8 +680,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -770,14 +687,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -789,8 +703,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -810,8 +722,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -819,15 +729,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -835,19 +742,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.
@@ -856,24 +759,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);
     }
 
@@ -883,12 +783,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();
   }
@@ -897,27 +797,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;
@@ -932,4 +832,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 77601bcd6d7d..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 f8cb7433527f..d8e4930376b3 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,85 +1,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -88,31 +64,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 { @@ -121,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,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_); } @@ -157,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.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; } @@ -185,136 +159,129 @@ 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(); @@ -324,14 +291,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(); } @@ -346,8 +312,7 @@ 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); + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +322,38 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -397,9 +361,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_; onChanged(); @@ -430,19 +392,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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,22 +415,18 @@ public Builder mergeFrom( 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; @@ -479,23 +435,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 { @@ -503,74 +456,61 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,13 +520,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(); } @@ -595,27 +534,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; @@ -630,4 +569,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 63% 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 108b6f777fa8..efd2be45bfc9 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,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -161,15 +135,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; } @@ -189,136 +163,129 @@ 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(); @@ -328,9 +295,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 @@ -349,8 +316,7 @@ 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); + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -360,39 +326,38 @@ public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest 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.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; @@ -400,8 +365,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_; onChanged(); @@ -432,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -457,24 +419,20 @@ public Builder mergeFrom( 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; @@ -483,25 +441,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 { @@ -509,80 +464,67 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +534,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(); } @@ -606,27 +548,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; @@ -641,4 +583,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 63% 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 2b508f9582fe..af11a38746c8 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,61 +11,54 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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;
   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 @@ -91,33 +67,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 { @@ -126,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -162,15 +136,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; } @@ -190,104 +164,96 @@ 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.
@@ -295,32 +261,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();
@@ -330,9 +297,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
@@ -351,8 +318,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -362,39 +328,38 @@ public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest 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.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;
@@ -402,8 +367,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_;
         onChanged();
@@ -434,19 +398,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -459,24 +421,20 @@ public Builder mergeFrom(
 
     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; @@ -485,25 +443,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 { @@ -511,80 +466,67 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +536,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(); } @@ -608,27 +550,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; @@ -643,4 +585,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..d9571e15c975 --- /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,113 @@ +// 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\"\250\001\n\016HistogramQu" + + "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" + + "precise_result_size\030\002 \001(\010\022X\n\007filters\030\003 \001" + + "(\0132B.google.cloud.contentwarehouse.v1.Hi" + + "stogramQueryPropertyNameFilterB\003\340A\001\"\272\002\n " + + "HistogramQueryPropertyNameFilter\022M\n\020docu" + + "ment_schemas\030\001 \003(\tB3\372A0\n.contentwarehous" + + "e.googleapis.com/DocumentSchema\022\026\n\016prope" + + "rty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.google" + + ".cloud.contentwarehouse.v1.HistogramQuer" + + "yPropertyNameFilter.HistogramYAxis\"L\n\016Hi" + + "stogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMENT" + + "\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024His" + + "togramQueryResult\022\027\n\017histogram_query\030\001 \001" + + "(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.con" + + "tentwarehouse.v1.HistogramQueryResult.Hi" + + "stogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\212\001\n$com.google.cl" + + "oud.contentwarehouse.v1B\016HistogramProtoP" + + "\001ZPgoogle.golang.org/genproto/googleapis" + + "/cloud/contentwarehouse/v1;contentwareho" + + "useb\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 d3ac69487154..7a9282901b34 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object histogramQuery_; /** - * - * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -79,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ @java.lang.Override @@ -88,15 +66,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.
@@ -104,15 +81,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 { @@ -123,8 +101,6 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() { public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 2; private boolean requirePreciseResultSize_; /** - * - * *
    * Controls if the histogram query requires the return of a precise count.
    * Enable this flag may adversely impact performance.
@@ -132,7 +108,6 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() {
    * 
* * bool require_precise_result_size = 2; - * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -143,8 +118,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').
@@ -153,10 +126,7 @@ public boolean getRequirePreciseResultSize() {
    * 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 @@ -164,8 +134,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').
@@ -174,21 +142,14 @@ public boolean hasFilters() {
    * 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').
@@ -197,18 +158,14 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
    * 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() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder() { return getFilters(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,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_); } @@ -243,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; @@ -256,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; @@ -284,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(); @@ -295,135 +258,129 @@ 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(); @@ -441,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 @@ -462,8 +419,7 @@ 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); + com.google.cloud.contentwarehouse.v1.HistogramQuery result = new com.google.cloud.contentwarehouse.v1.HistogramQuery(this); result.histogramQuery_ = histogramQuery_; result.requirePreciseResultSize_ = requirePreciseResultSize_; if (filtersBuilder_ == null) { @@ -479,39 +435,38 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery 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.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; @@ -519,8 +474,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_; onChanged(); @@ -557,31 +511,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - histogramQuery_ = input.readStringRequireUtf8(); + case 10: { + histogramQuery_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - requirePreciseResultSize_ = input.readBool(); + break; + } // case 10 + case 16: { + requirePreciseResultSize_ = input.readBool(); - break; - } // case 16 - case 26: - { - input.readMessage(getFiltersFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 16 + case 26: { + input.readMessage( + getFiltersFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -594,8 +546,6 @@ public Builder mergeFrom( private java.lang.Object histogramQuery_ = ""; /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -603,13 +553,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; @@ -618,8 +568,6 @@ public java.lang.String getHistogramQuery() { } } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -627,14 +575,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 { @@ -642,8 +591,6 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() { } } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -651,22 +598,20 @@ 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) { + public Builder setHistogramQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + histogramQuery_ = value; onChanged(); return this; } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -674,18 +619,15 @@ public Builder setHistogramQuery(java.lang.String value) {
      * 
* * string histogram_query = 1; - * * @return This builder for chaining. */ public Builder clearHistogramQuery() { - + histogramQuery_ = getDefaultInstance().getHistogramQuery(); onChanged(); return this; } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -693,25 +635,23 @@ 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) { + public Builder setHistogramQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + histogramQuery_ = value; onChanged(); 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.
@@ -719,7 +659,6 @@ public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * bool require_precise_result_size = 2; - * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -727,8 +666,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.
@@ -736,19 +673,16 @@ public boolean getRequirePreciseResultSize() {
      * 
* * bool require_precise_result_size = 2; - * * @param value The requirePreciseResultSize to set. * @return This builder for chaining. */ public Builder setRequirePreciseResultSize(boolean value) { - + requirePreciseResultSize_ = value; onChanged(); return this; } /** - * - * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -756,11 +690,10 @@ public Builder setRequirePreciseResultSize(boolean value) {
      * 
* * bool require_precise_result_size = 2; - * * @return This builder for chaining. */ public Builder clearRequirePreciseResultSize() { - + requirePreciseResultSize_ = false; onChanged(); return this; @@ -768,13 +701,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').
@@ -783,18 +711,13 @@ public Builder clearRequirePreciseResultSize() {
      * 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 filtersBuilder_ != null || filters_ != null; } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It only works
      * with histogram query count('FilterableProperties').
@@ -803,25 +726,17 @@ public boolean hasFilters() {
      * 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').
@@ -830,12 +745,9 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
      * 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(); @@ -849,8 +761,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').
@@ -859,13 +769,10 @@ public Builder setFilters(
      * 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(); onChanged(); @@ -876,8 +783,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').
@@ -886,19 +791,13 @@ public Builder setFilters(
      * 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 (filters_ != null) { filters_ = - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder( - filters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder(filters_).mergeFrom(value).buildPartial(); } else { filters_ = value; } @@ -910,8 +809,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').
@@ -920,9 +817,7 @@ public Builder mergeFilters(
      * 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() { if (filtersBuilder_ == null) { @@ -936,8 +831,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').
@@ -946,19 +839,14 @@ public Builder clearFilters() {
      * 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() { + onChanged(); return getFiltersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It only works
      * with histogram query count('FilterableProperties').
@@ -967,24 +855,17 @@ public Builder clearFilters() {
      * 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').
@@ -993,29 +874,24 @@ public Builder clearFilters() {
      * 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); } @@ -1025,12 +901,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(); } @@ -1039,27 +915,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; @@ -1074,4 +950,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 67% 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 d37ebc01ecbb..d3fa85a50829 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -33,13 +15,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.
@@ -47,14 +26,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.
@@ -62,14 +39,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').
@@ -78,16 +52,11 @@ public interface HistogramQueryOrBuilder
    * 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').
@@ -96,16 +65,11 @@ public interface HistogramQueryOrBuilder
    * 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').
@@ -114,10 +78,7 @@ public interface HistogramQueryOrBuilder
    * 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 72% 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 f43c2dda5eec..417cfb1da05a 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,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; propertyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -38,33 +23,30 @@ private HistogramQueryPropertyNameFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HistogramQueryPropertyNameFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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:
@@ -74,13 +56,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.
      * 
@@ -89,8 +69,6 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { */ HISTOGRAM_YAXIS_DOCUMENT(0), /** - * - * *
      * Count the properties per property name.
      * 
@@ -102,8 +80,6 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Count the documents per property name.
      * 
@@ -112,8 +88,6 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HISTOGRAM_YAXIS_DOCUMENT_VALUE = 0; /** - * - * *
      * Count the properties per property name.
      * 
@@ -122,6 +96,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( @@ -146,49 +121,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; @@ -208,8 +182,6 @@ private HistogramYAxis(int value) { public static final int DOCUMENT_SCHEMAS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList documentSchemas_; /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -221,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] to run histogram query against.
@@ -241,15 +211,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] to run histogram query against.
@@ -261,7 +228,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. */ @@ -269,8 +235,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] to run histogram query against.
@@ -282,19 +246,17 @@ 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; private com.google.protobuf.LazyStringList propertyNames_; /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -306,15 +268,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.
@@ -326,15 +286,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.
@@ -346,7 +303,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. */ @@ -354,8 +310,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.
@@ -367,63 +321,44 @@ 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_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .valueOf(yAxis_); - return result == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.valueOf(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; @@ -435,17 +370,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); @@ -473,11 +406,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; @@ -487,16 +418,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; @@ -525,130 +457,125 @@ 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(); @@ -662,16 +589,14 @@ 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_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 @@ -685,8 +610,7 @@ 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); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result = new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { documentSchemas_ = documentSchemas_.getUnmodifiableView(); @@ -707,51 +631,46 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; @@ -801,33 +720,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(); + 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(); - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -837,21 +752,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList documentSchemas_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList documentSchemas_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDocumentSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { documentSchemas_ = new com.google.protobuf.LazyStringArrayList(documentSchemas_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -863,15 +773,13 @@ 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() { return documentSchemas_.getUnmodifiableView(); } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -883,15 +791,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] to run histogram query against.
@@ -903,7 +808,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. */ @@ -911,8 +815,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] to run histogram query against.
@@ -924,16 +826,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] to run histogram query against.
@@ -945,23 +845,21 @@ 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) { + public Builder setDocumentSchemas( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemasIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemasIsMutable(); documentSchemas_.set(index, value); onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -973,22 +871,20 @@ 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) { + public Builder addDocumentSchemas( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemasIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -1000,19 +896,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -1024,7 +919,6 @@ public Builder addAllDocumentSchemas(java.lang.Iterable values
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemas() { @@ -1034,8 +928,6 @@ public Builder clearDocumentSchemas() { return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -1047,33 +939,29 @@ 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) { + public Builder addDocumentSchemasBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList propertyNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList propertyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePropertyNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { propertyNames_ = new com.google.protobuf.LazyStringArrayList(propertyNames_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1085,15 +973,13 @@ 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() { return propertyNames_.getUnmodifiableView(); } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1105,15 +991,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.
@@ -1125,7 +1008,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. */ @@ -1133,8 +1015,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.
@@ -1146,16 +1026,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.
@@ -1167,23 +1045,21 @@ 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) { + public Builder setPropertyNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePropertyNamesIsMutable(); + throw new NullPointerException(); + } + ensurePropertyNamesIsMutable(); propertyNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1195,22 +1071,20 @@ 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) { + public Builder addPropertyNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePropertyNamesIsMutable(); + throw new NullPointerException(); + } + ensurePropertyNamesIsMutable(); propertyNames_.add(value); onChanged(); return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1222,19 +1096,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1246,7 +1119,6 @@ public Builder addAllPropertyNames(java.lang.Iterable values)
      * 
* * repeated string property_names = 2; - * * @return This builder for chaining. */ public Builder clearPropertyNames() { @@ -1256,8 +1128,6 @@ public Builder clearPropertyNames() { return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1269,15 +1139,15 @@ 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) { + public Builder addPropertyNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePropertyNamesIsMutable(); propertyNames_.add(value); onChanged(); @@ -1286,119 +1156,85 @@ 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. */ public Builder setYAxisValue(int value) { - + yAxis_ = value; onChanged(); 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() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .valueOf(yAxis_); - return result == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.valueOf(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(); } - + yAxis_ = value.getNumber(); onChanged(); 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() { - + yAxis_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1408,43 +1244,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; @@ -1456,8 +1290,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 c9aaa8c2e93c..857790b7eb47 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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] to run histogram query against.
@@ -37,13 +19,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] to run histogram query against.
@@ -55,13 +35,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] to run histogram query against.
@@ -73,14 +50,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] to run histogram query against.
@@ -92,15 +66,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.
@@ -112,13 +84,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.
@@ -130,13 +100,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.
@@ -148,14 +115,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.
@@ -167,39 +131,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 63% 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 22d2314e3cbb..3ddd01eeaa6f 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,94 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Histogram result that matches [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified in searches.
  * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object histogramQuery_; /** - * - * *
    * Requested histogram expression.
    * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ @java.lang.Override @@ -97,29 +76,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 { @@ -128,23 +107,24 @@ 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); - } - - private com.google.protobuf.MapField histogram_; - - private com.google.protobuf.MapField internalGetHistogram() { + 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); + } + 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_; } @@ -153,8 +133,6 @@ 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.
@@ -164,22 +142,22 @@ 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.
@@ -190,12 +168,11 @@ public java.util.Map getHistogram() {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
+
   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.
@@ -206,16 +183,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.
@@ -226,11 +203,12 @@ 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();
     }
@@ -238,7 +216,6 @@ public long getHistogramOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -250,12 +227,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);
   }
 
@@ -268,15 +250,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;
@@ -286,16 +268,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;
   }
@@ -319,156 +302,151 @@ 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 in searches.
    * 
* * 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(); @@ -479,9 +457,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 @@ -500,8 +478,7 @@ 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); + com.google.cloud.contentwarehouse.v1.HistogramQueryResult result = new com.google.cloud.contentwarehouse.v1.HistogramQueryResult(this); int from_bitField0_ = bitField0_; result.histogramQuery_ = histogramQuery_; result.histogram_ = internalGetHistogram(); @@ -514,39 +491,38 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult 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.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; @@ -554,13 +530,13 @@ 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_; onChanged(); } - internalGetMutableHistogram().mergeFrom(other.internalGetHistogram()); + internalGetMutableHistogram().mergeFrom( + other.internalGetHistogram()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -587,30 +563,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - histogramQuery_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry histogram__ = - input.readMessage( - HistogramDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHistogram() - .getMutableMap() - .put(histogram__.getKey(), histogram__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + histogramQuery_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + histogram__ = input.readMessage( + HistogramDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableHistogram().getMutableMap().put( + histogram__.getKey(), histogram__.getValue()); + 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) { @@ -620,25 +591,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; @@ -647,21 +615,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 { @@ -669,82 +636,75 @@ 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) { + public Builder setHistogramQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + histogramQuery_ = value; onChanged(); return this; } /** - * - * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; - * * @return This builder for chaining. */ public Builder clearHistogramQuery() { - + histogramQuery_ = getDefaultInstance().getHistogramQuery(); onChanged(); 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) { + public Builder setHistogramQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + histogramQuery_ = value; onChanged(); 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() { - onChanged(); - ; + internalGetMutableHistogram() { + onChanged();; 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(); @@ -756,8 +716,6 @@ 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.
@@ -767,22 +725,22 @@ 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.
@@ -793,12 +751,11 @@ public java.util.Map getHistogram() {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
+
     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.
@@ -809,16 +766,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.
@@ -829,11 +786,12 @@ 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();
       }
@@ -841,12 +799,11 @@ public long getHistogramOrThrow(java.lang.String key) {
     }
 
     public Builder clearHistogram() {
-      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.
@@ -856,21 +813,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() {
       return internalGetMutableHistogram().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -880,17 +839,16 @@ 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");
-      }
-
-      internalGetMutableHistogram().getMutableMap().put(key, value);
+    public Builder putHistogram(
+        java.lang.String key,
+        long value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      
+      internalGetMutableHistogram().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -900,13 +858,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);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -916,12 +877,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();
   }
@@ -930,27 +891,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;
@@ -965,4 +926,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 dbd1a338b84f..415ec77494b2 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -62,8 +39,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.
@@ -73,13 +48,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.
@@ -89,10 +66,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.
@@ -102,10 +78,11 @@ 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.
@@ -115,5 +92,7 @@ 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/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 64d0659c23f5..1e47f4b8a293 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,123 +1,94 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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; @@ -129,7 +100,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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,12 +122,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; } @@ -167,15 +141,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; } @@ -197,135 +171,129 @@ 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(); @@ -335,9 +303,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 @@ -356,8 +324,7 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); @@ -372,39 +339,38 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray 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.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; @@ -412,8 +378,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_; @@ -450,31 +415,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) { @@ -484,56 +446,45 @@ 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_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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. */ @@ -541,33 +492,28 @@ 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); onChanged(); return this; } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 values = 1; - * * @param value The values to add. * @return This builder for chaining. */ @@ -578,32 +524,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() { @@ -612,9 +554,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); } @@ -624,12 +566,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(); } @@ -638,27 +580,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; @@ -673,4 +615,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 61d09b105dda..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 de4fdb6aaaa9..65e789157fd0 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,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,136 +102,129 @@ 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(); @@ -258,9 +232,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 @@ -279,8 +253,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; } @@ -289,39 +262,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; @@ -329,8 +301,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; @@ -357,13 +328,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) { @@ -373,9 +343,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); } @@ -385,12 +355,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(); } @@ -399,27 +369,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; @@ -434,4 +404,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 7f2ebc21c07c..071038b94ed7 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,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -85,14 +63,11 @@ public boolean hasRule() { return rule_ != null; } /** - * - * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ @java.lang.Override @@ -100,8 +75,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** - * - * *
    * Triggered rule.
    * 
@@ -116,14 +89,11 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** - * - * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; - * * @return The error. */ @java.lang.Override @@ -132,29 +102,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 { @@ -163,7 +133,6 @@ public com.google.protobuf.ByteString getErrorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,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 (rule_ != null) { output.writeMessage(1, getRule()); } @@ -192,7 +162,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_); @@ -205,19 +176,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; } @@ -240,136 +212,130 @@ 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(); @@ -385,9 +351,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 @@ -406,8 +372,7 @@ 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); + com.google.cloud.contentwarehouse.v1.InvalidRule result = new com.google.cloud.contentwarehouse.v1.InvalidRule(this); if (ruleBuilder_ == null) { result.rule_ = rule_; } else { @@ -422,39 +387,38 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule 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.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; @@ -462,8 +426,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()); } @@ -497,25 +460,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - error_ = input.readStringRequireUtf8(); - - 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); + + break; + } // case 10 + case 18: { + error_ = input.readStringRequireUtf8(); + + 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) { @@ -528,47 +490,34 @@ public Builder mergeFrom( 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 ruleBuilder_ != null || rule_ != null; } /** - * - * *
      * 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.
      * 
@@ -589,15 +538,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(); onChanged(); @@ -608,8 +556,6 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builder return this; } /** - * - * *
      * Triggered rule.
      * 
@@ -620,9 +566,7 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { if (rule_ != null) { rule_ = - com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); } else { rule_ = value; } @@ -634,8 +578,6 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * Triggered rule.
      * 
@@ -654,8 +596,6 @@ public Builder clearRule() { return this; } /** - * - * *
      * Triggered rule.
      * 
@@ -663,13 +603,11 @@ public Builder clearRule() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { - + onChanged(); return getRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Triggered rule.
      * 
@@ -680,14 +618,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.
      * 
@@ -695,17 +630,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_; @@ -713,20 +645,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; @@ -735,21 +665,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 { @@ -757,68 +686,61 @@ 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) { + public Builder setError( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** - * - * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; - * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); 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) { + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = 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); } @@ -828,12 +750,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(); } @@ -842,27 +764,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; @@ -877,4 +799,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 adf3deea7f4d..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 6ef5a00c5543..16d8e05c0f62 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,44 +26,38 @@ private ListDocumentSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDocumentSchemasRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,32 +66,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 { @@ -126,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of document schemas to return. The service may return
    * fewer than this value.
@@ -136,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,8 +118,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +126,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +134,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.
@@ -183,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 { @@ -200,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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_); } @@ -235,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_); @@ -248,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.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; } @@ -282,136 +253,129 @@ 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(); @@ -425,14 +389,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(); } @@ -447,8 +410,7 @@ 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); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -460,50 +422,46 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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_; onChanged(); @@ -541,31 +499,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + 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,23 +532,19 @@ public Builder mergeFrom( 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; @@ -603,24 +553,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 { @@ -628,79 +575,64 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -709,7 +641,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -717,8 +648,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -727,19 +656,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -748,11 +674,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -760,8 +685,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.
@@ -770,13 +693,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; @@ -785,8 +708,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -795,14 +716,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 { @@ -810,8 +732,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -820,22 +740,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -844,18 +762,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -864,23 +779,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -890,43 +805,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; @@ -938,8 +851,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 0518e51e622e..528273893ca4 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -81,13 +51,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.
@@ -96,8 +63,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 daca930a48e8..10d4d4f3c36c 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List documentSchemas_; /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -80,13 +59,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.
    * 
@@ -94,13 +70,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.
    * 
@@ -112,8 +86,6 @@ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in return documentSchemas_.get(index); } /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -142,15 +112,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -159,30 +126,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 { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } 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 { for (int i = 0; i < documentSchemas_.size(); i++) { output.writeMessage(1, documentSchemas_.get(i)); } @@ -220,7 +187,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_); @@ -233,16 +201,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; } @@ -266,136 +235,129 @@ 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(); @@ -412,14 +374,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(); } @@ -434,8 +395,7 @@ 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); int from_bitField0_ = bitField0_; if (documentSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -455,50 +415,46 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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()) { @@ -517,10 +473,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_); } @@ -556,33 +511,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -592,38 +544,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 { @@ -631,8 +573,6 @@ private void ensureDocumentSchemasIsMutable() { } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -647,8 +587,6 @@ public int getDocumentSchemasCount() { } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -663,8 +601,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -686,8 +622,6 @@ public Builder setDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -706,8 +640,6 @@ public Builder setDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -728,8 +660,6 @@ public Builder addDocumentSchemas(com.google.cloud.contentwarehouse.v1.DocumentS return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -751,8 +681,6 @@ public Builder addDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -771,8 +699,6 @@ public Builder addDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -791,8 +717,6 @@ public Builder addDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -803,7 +727,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); @@ -811,8 +736,6 @@ public Builder addAllDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -830,8 +753,6 @@ public Builder clearDocumentSchemas() { return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -849,8 +770,6 @@ public Builder removeDocumentSchemas(int index) { return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -862,8 +781,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -873,22 +790,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 { @@ -896,8 +810,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -905,12 +817,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.
      * 
@@ -919,35 +829,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(), @@ -959,21 +860,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; @@ -982,22 +881,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 { @@ -1005,71 +903,64 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,43 +970,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; @@ -1127,8 +1016,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 65061d15f453..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 71% 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 6aab82ad8067..2cf92d3a3ce7 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,45 +26,39 @@ private ListLinkedSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinkedSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -91,33 +67,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 { @@ -128,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of document-links to return. The service may return
    * fewer than this value.
@@ -138,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -149,8 +120,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -159,7 +128,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -168,15 +136,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.
@@ -185,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 { @@ -204,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 @@ -220,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.
@@ -248,13 +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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,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_);
     }
@@ -292,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_);
@@ -308,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;
@@ -350,136 +312,129 @@ 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(); @@ -499,14 +454,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(); } @@ -521,8 +475,7 @@ 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); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,39 +492,38 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -579,9 +531,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_; onChanged(); @@ -622,37 +572,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -665,24 +612,20 @@ public Builder mergeFrom( 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; @@ -691,25 +634,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 { @@ -717,82 +657,67 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -801,7 +726,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -809,8 +733,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -819,19 +741,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -840,11 +759,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -852,8 +770,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.
@@ -862,13 +778,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; @@ -877,8 +793,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -887,14 +801,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 { @@ -902,8 +817,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -912,22 +825,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -936,18 +847,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -956,16 +864,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -973,49 +881,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1037,8 +932,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.
@@ -1058,8 +951,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1067,14 +958,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1086,8 +974,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1107,8 +993,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1116,15 +1000,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1132,19 +1013,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.
@@ -1153,24 +1030,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);
     }
 
@@ -1180,13 +1054,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();
   }
@@ -1195,27 +1068,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;
@@ -1230,4 +1103,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 14c5da35ec00..d390b69f1992 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -67,14 +40,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.
@@ -83,13 +53,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.
@@ -98,40 +65,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 2bcb0957c644..87229e40434e 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List documentLinks_; /** - * - * *
    * Source document-links.
    * 
@@ -84,8 +63,6 @@ public java.util.List getDocu return documentLinks_; } /** - * - * *
    * Source document-links.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** - * - * *
    * Source document-links.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** - * - * *
    * Source document-links.
    * 
@@ -141,15 +112,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 +126,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 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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 { for (int i = 0; i < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -219,7 +187,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_); @@ -232,16 +201,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; } @@ -265,136 +235,129 @@ 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(); @@ -411,14 +374,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(); } @@ -433,8 +395,7 @@ 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); int from_bitField0_ = bitField0_; if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +415,38 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -494,9 +454,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()) { @@ -515,10 +473,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_); } @@ -554,33 +511,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -590,38 +544,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 { @@ -629,8 +573,6 @@ private void ensureDocumentLinksIsMutable() { } } /** - * - * *
      * Source document-links.
      * 
@@ -645,8 +587,6 @@ public int getDocumentLinksCount() { } } /** - * - * *
      * Source document-links.
      * 
@@ -661,8 +601,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** - * - * *
      * Source document-links.
      * 
@@ -684,8 +622,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -704,8 +640,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -726,8 +660,6 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** - * - * *
      * Source document-links.
      * 
@@ -749,8 +681,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -769,8 +699,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -789,8 +717,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -801,7 +727,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); @@ -809,8 +736,6 @@ public Builder addAllDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -828,8 +753,6 @@ public Builder clearDocumentLinks() { return this; } /** - * - * *
      * Source document-links.
      * 
@@ -847,8 +770,6 @@ public Builder removeDocumentLinks(int index) { return this; } /** - * - * *
      * Source document-links.
      * 
@@ -860,8 +781,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** - * - * *
      * Source document-links.
      * 
@@ -871,22 +790,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 { @@ -894,8 +810,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** - * - * *
      * Source document-links.
      * 
@@ -903,12 +817,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.
      * 
@@ -917,35 +829,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(), @@ -957,21 +860,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; @@ -980,22 +881,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 { @@ -1003,71 +903,64 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1077,43 +970,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; @@ -1125,8 +1016,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 0142fc34bb3d..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 68% 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 6373b02ae0d1..39b936146d98 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,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -127,15 +101,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 @@ -143,26 +114,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.
@@ -171,13 +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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -189,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(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -209,7 +172,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;
@@ -219,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.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;
@@ -255,136 +220,129 @@ 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(); @@ -400,14 +358,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(); } @@ -422,8 +379,7 @@ 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); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest(this); result.parent_ = parent_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -438,39 +394,38 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -478,9 +433,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_; onChanged(); @@ -514,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -545,24 +497,20 @@ public Builder mergeFrom( 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; @@ -571,25 +519,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 { @@ -597,73 +542,60 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -671,49 +603,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -735,8 +654,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.
@@ -756,8 +673,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -765,14 +680,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -784,8 +696,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -805,8 +715,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -814,15 +722,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -830,19 +735,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.
@@ -851,24 +752,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);
     }
 
@@ -878,13 +776,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();
   }
@@ -893,27 +790,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;
@@ -928,4 +825,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 02c51051cf14..704fccfa60c9 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 fec866dbc310..0d81ebfba5fe 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List documentLinks_; /** - * - * *
    * Target document-links.
    * 
@@ -84,8 +63,6 @@ public java.util.List getDocu return documentLinks_; } /** - * - * *
    * Target document-links.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** - * - * *
    * Target document-links.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** - * - * *
    * Target document-links.
    * 
@@ -141,15 +112,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 +126,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 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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 { for (int i = 0; i < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -219,7 +187,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_); @@ -232,16 +201,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; } @@ -265,136 +235,129 @@ 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(); @@ -411,14 +374,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(); } @@ -433,8 +395,7 @@ 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); int from_bitField0_ = bitField0_; if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +415,38 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -494,9 +454,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()) { @@ -515,10 +473,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_); } @@ -554,33 +511,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -590,38 +544,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 { @@ -629,8 +573,6 @@ private void ensureDocumentLinksIsMutable() { } } /** - * - * *
      * Target document-links.
      * 
@@ -645,8 +587,6 @@ public int getDocumentLinksCount() { } } /** - * - * *
      * Target document-links.
      * 
@@ -661,8 +601,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** - * - * *
      * Target document-links.
      * 
@@ -684,8 +622,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -704,8 +640,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -726,8 +660,6 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** - * - * *
      * Target document-links.
      * 
@@ -749,8 +681,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -769,8 +699,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -789,8 +717,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -801,7 +727,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); @@ -809,8 +736,6 @@ public Builder addAllDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -828,8 +753,6 @@ public Builder clearDocumentLinks() { return this; } /** - * - * *
      * Target document-links.
      * 
@@ -847,8 +770,6 @@ public Builder removeDocumentLinks(int index) { return this; } /** - * - * *
      * Target document-links.
      * 
@@ -860,8 +781,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** - * - * *
      * Target document-links.
      * 
@@ -871,22 +790,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 { @@ -894,8 +810,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** - * - * *
      * Target document-links.
      * 
@@ -903,12 +817,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.
      * 
@@ -917,35 +829,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(), @@ -957,21 +860,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; @@ -980,22 +881,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 { @@ -1003,71 +903,64 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1077,43 +970,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; @@ -1125,8 +1016,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 a1106ea2e029..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 ea5d5498a540..135c7738351b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,44 +26,38 @@ private ListRuleSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuleSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,32 +66,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 { @@ -126,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of rule sets to return. The service may return
    * fewer than this value.
@@ -136,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,8 +118,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +126,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +134,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.
@@ -183,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 { @@ -200,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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_); } @@ -235,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_); @@ -248,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.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; } @@ -282,136 +253,129 @@ 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(); @@ -425,9 +389,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 @@ -446,8 +410,7 @@ 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); + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest result = new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -459,39 +422,38 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest 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.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; @@ -499,8 +461,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_; onChanged(); @@ -538,31 +499,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -575,23 +532,19 @@ public Builder mergeFrom( 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; @@ -600,24 +553,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 { @@ -625,79 +575,64 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -706,7 +641,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -714,8 +648,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -724,19 +656,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -745,11 +674,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -757,8 +685,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.
@@ -767,13 +693,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; @@ -782,8 +708,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -792,14 +716,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 { @@ -807,8 +732,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -817,22 +740,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -841,18 +762,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -861,23 +779,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +805,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(); } @@ -901,27 +819,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; @@ -936,4 +854,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 62% 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 b1a5ce3fc7cd..e47905f5fde2 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -81,13 +51,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.
@@ -96,8 +63,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 85e03555fc5d..366da7e6933f 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List ruleSets_; /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -84,8 +63,6 @@ public java.util.List getRuleSetsL return ruleSets_; } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getRuleSetsCount() { return ruleSets_.size(); } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { return ruleSets_.get(index); } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -133,22 +104,20 @@ 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; 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 +126,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 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,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 { for (int i = 0; i < ruleSets_.size(); i++) { output.writeMessage(1, ruleSets_.get(i)); } @@ -218,7 +187,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_); @@ -231,16 +201,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; } @@ -264,136 +235,129 @@ 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(); @@ -410,9 +374,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 @@ -431,8 +395,7 @@ 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); int from_bitField0_ = bitField0_; if (ruleSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -452,39 +415,38 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse 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.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; @@ -492,8 +454,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()) { @@ -512,10 +473,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_); } @@ -551,32 +511,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -586,29 +544,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.
      * 
@@ -623,8 +573,6 @@ public java.util.List getRuleSetsL } } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -639,8 +587,6 @@ public int getRuleSetsCount() { } } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -655,15 +601,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(); @@ -677,8 +622,6 @@ public Builder setRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleS return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -697,8 +640,6 @@ public Builder setRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -719,15 +660,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(); @@ -741,8 +681,6 @@ public Builder addRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleS return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -761,8 +699,6 @@ public Builder addRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -781,8 +717,6 @@ public Builder addRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -793,7 +727,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); @@ -801,8 +736,6 @@ public Builder addAllRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -820,8 +753,6 @@ public Builder clearRuleSets() { return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -839,44 +770,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 { @@ -884,8 +810,6 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilde } } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -893,48 +817,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_; @@ -942,21 +860,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; @@ -965,22 +881,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 { @@ -988,71 +903,64 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1062,12 +970,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(); } @@ -1076,27 +984,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; @@ -1111,4 +1019,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 6e9638bd4fc6..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 68% 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 7d17e5632f56..31e529a95923 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,44 +27,38 @@ private ListSynonymSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSynonymSetsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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;
   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 @@ -91,32 +67,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 { @@ -127,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of synonymSets to return. The service may return
    * fewer than this value.
@@ -137,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,8 +119,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -158,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -167,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 `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +151,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 +169,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -236,7 +204,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 +218,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; } @@ -283,104 +254,96 @@ 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.
@@ -388,32 +351,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();
@@ -427,9 +391,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
@@ -448,8 +412,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest result = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -461,39 +424,38 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest 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.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;
@@ -501,8 +463,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_;
         onChanged();
@@ -540,31 +501,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+
+              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) {
@@ -577,23 +534,19 @@ public Builder mergeFrom(
 
     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; @@ -602,24 +555,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 { @@ -627,79 +577,64 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -708,7 +643,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -716,8 +650,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -726,19 +658,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -747,11 +676,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -759,8 +687,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.
@@ -769,13 +695,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; @@ -784,8 +710,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -794,14 +718,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 { @@ -809,8 +734,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -819,22 +742,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -843,18 +764,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -863,23 +781,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -889,12 +807,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(); } @@ -903,27 +821,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; @@ -938,4 +856,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 3e1248b98eb6..6607712a28fb 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -81,13 +51,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.
@@ -96,8 +63,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 1384409e9ab5..f1545f8823f7 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List synonymSets_; /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -84,8 +63,6 @@ public java.util.List getSynony return synonymSets_; } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getSynonymSetsCount() { return synonymSets_.size(); } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) return synonymSets_.get(index); } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -141,15 +112,12 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -158,30 +126,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 { @@ -190,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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 { for (int i = 0; i < synonymSets_.size(); i++) { output.writeMessage(1, synonymSets_.get(i)); } @@ -219,7 +187,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_); @@ -232,16 +201,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; } @@ -265,136 +235,129 @@ 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(); @@ -411,14 +374,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(); } @@ -433,8 +395,7 @@ 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); int from_bitField0_ = bitField0_; if (synonymSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +415,38 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse 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.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; @@ -494,9 +454,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()) { @@ -515,10 +473,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_); } @@ -554,33 +511,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -590,29 +544,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.
      * 
@@ -627,8 +573,6 @@ public java.util.List getSynony } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -643,8 +587,6 @@ public int getSynonymSetsCount() { } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -659,8 +601,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -682,8 +622,6 @@ public Builder setSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -702,8 +640,6 @@ public Builder setSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -724,8 +660,6 @@ public Builder addSynonymSets(com.google.cloud.contentwarehouse.v1.SynonymSet va return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -747,8 +681,6 @@ public Builder addSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -767,8 +699,6 @@ public Builder addSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -787,8 +717,6 @@ public Builder addSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -799,7 +727,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); @@ -807,8 +736,6 @@ public Builder addAllSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -826,8 +753,6 @@ public Builder clearSynonymSets() { return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -845,8 +770,6 @@ public Builder removeSynonymSets(int index) { return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -858,8 +781,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetsBui return getSynonymSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -869,22 +790,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 { @@ -892,8 +810,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -901,12 +817,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.
      * 
@@ -915,35 +829,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_; @@ -951,21 +860,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; @@ -974,22 +881,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 { @@ -997,71 +903,64 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,13 +970,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(); } @@ -1086,27 +984,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; @@ -1121,4 +1019,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 e370c9a5d995..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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/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 4304c4e125be..3ca0eccedfed 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,78 +12,74 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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());
-  }
-
-  private com.google.protobuf.MapField
-      fields_;
-
+            .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());
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, com.google.cloud.contentwarehouse.v1.Value> 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_;
   }
@@ -109,30 +88,28 @@ public int getFieldsCount() {
     return internalGetFields().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Unordered map of dynamically typed values.
    * 
* * 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.
    * 
@@ -140,13 +117,11 @@ 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.
    * 
@@ -154,18 +129,16 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override + public com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( - java.lang.String key, com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String 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.
    * 
@@ -173,10 +146,10 @@ public 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)) { @@ -186,7 +159,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; @@ -198,9 +170,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); } @@ -210,16 +187,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; @@ -229,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -258,104 +234,97 @@ 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
@@ -364,52 +333,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();
@@ -418,9 +390,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
@@ -439,8 +411,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.MapProperty result = new com.google.cloud.contentwarehouse.v1.MapProperty(this);
       int from_bitField0_ = bitField0_;
       result.fields_ = internalGetFields();
       result.fields_.makeImmutable();
@@ -452,39 +423,38 @@ public com.google.cloud.contentwarehouse.v1.MapProperty 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.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;
@@ -492,9 +462,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());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -521,26 +491,20 @@ 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());
-                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());
+              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) {
@@ -550,29 +514,24 @@ 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>
-        internalGetFields() {
+        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>
-        internalGetMutableFields() {
-      onChanged();
-      ;
+    private com.google.protobuf.MapField
+    internalGetMutableFields() {
+      onChanged();;
       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();
@@ -584,30 +543,28 @@ public int getFieldsCount() {
       return internalGetFields().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Unordered map of dynamically typed values.
      * 
* * 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.
      * 
@@ -615,13 +572,11 @@ 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.
      * 
@@ -629,18 +584,16 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override + public com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( - java.lang.String key, com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String 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.
      * 
@@ -648,10 +601,10 @@ public 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)) { @@ -661,34 +614,34 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.Str } public Builder clearFields() { - 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() { + getMutableFields() { return internalGetMutableFields().getMutableMap(); } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
@@ -696,34 +649,34 @@ 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"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableFields().getMutableMap().put(key, value); + internalGetMutableFields().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ + public Builder putAllFields( java.util.Map values) { - internalGetMutableFields().getMutableMap().putAll(values); + internalGetMutableFields().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -733,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(); } @@ -747,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; @@ -782,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 7a4e1e413687..1f7a1e3dad98 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * 
@@ -67,18 +48,18 @@ public interface MapPropertyOrBuilder */ /* 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 b6da875998c1..d31807763946 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,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,135 +102,129 @@ 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(); @@ -257,9 +232,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 @@ -278,8 +253,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; } @@ -288,39 +262,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; @@ -328,8 +301,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; @@ -356,13 +328,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) { @@ -372,9 +343,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); } @@ -384,12 +355,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(); } @@ -398,27 +369,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; @@ -433,4 +404,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 d96e1fb43db7..a160ecc31516 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,76 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -81,7 +61,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 @@ -89,8 +68,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
@@ -101,7 +78,6 @@ public boolean hasReplaceMessageFields() {
    * 
* * optional bool replace_message_fields = 1; - * * @return The replaceMessageFields. */ @java.lang.Override @@ -112,8 +88,6 @@ public boolean getReplaceMessageFields() { public static final int REPLACE_REPEATED_FIELDS_FIELD_NUMBER = 2; private boolean replaceRepeatedFields_; /** - * - * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -126,7 +100,6 @@ public boolean getReplaceMessageFields() {
    * 
* * optional bool replace_repeated_fields = 2; - * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -134,8 +107,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.
@@ -148,7 +119,6 @@ public boolean hasReplaceRepeatedFields() {
    * 
* * optional bool replace_repeated_fields = 2; - * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -157,7 +127,6 @@ public boolean getReplaceRepeatedFields() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, replaceMessageFields_); } @@ -186,10 +156,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; @@ -199,21 +171,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; @@ -228,11 +201,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; @@ -240,136 +215,129 @@ 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(); @@ -381,9 +349,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 @@ -402,8 +370,7 @@ 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); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions result = new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -423,39 +390,38 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions 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.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; @@ -463,8 +429,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()); } @@ -497,25 +462,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) { @@ -525,13 +487,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
@@ -542,7 +501,6 @@ public Builder mergeFrom(
      * 
* * optional bool replace_message_fields = 1; - * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -550,8 +508,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
@@ -562,7 +518,6 @@ public boolean hasReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; - * * @return The replaceMessageFields. */ @java.lang.Override @@ -570,8 +525,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
@@ -582,7 +535,6 @@ public boolean getReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; - * * @param value The replaceMessageFields to set. * @return This builder for chaining. */ @@ -593,8 +545,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
@@ -605,7 +555,6 @@ public Builder setReplaceMessageFields(boolean value) {
      * 
* * optional bool replace_message_fields = 1; - * * @return This builder for chaining. */ public Builder clearReplaceMessageFields() { @@ -615,10 +564,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.
@@ -631,7 +578,6 @@ public Builder clearReplaceMessageFields() {
      * 
* * optional bool replace_repeated_fields = 2; - * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -639,8 +585,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.
@@ -653,7 +597,6 @@ public boolean hasReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; - * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -661,8 +604,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.
@@ -675,7 +616,6 @@ public boolean getReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; - * * @param value The replaceRepeatedFields to set. * @return This builder for chaining. */ @@ -686,8 +626,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.
@@ -700,7 +638,6 @@ public Builder setReplaceRepeatedFields(boolean value) {
      * 
* * optional bool replace_repeated_fields = 2; - * * @return This builder for chaining. */ public Builder clearReplaceRepeatedFields() { @@ -709,9 +646,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); } @@ -721,12 +658,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(); } @@ -735,27 +672,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; @@ -770,4 +707,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 79% 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 c59088ca5192..fab192b35fd6 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -73,13 +49,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.
@@ -92,7 +65,6 @@ public interface MergeFieldsOptionsOrBuilder
    * 
* * 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/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 872e08770564..ffe718dcfb2b 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,78 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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), @@ -84,7 +63,6 @@ public enum ValuesCase TIMESTAMP_VALUES(9), VALUES_NOT_SET(0); private final int value; - private ValuesCase(int value) { this.value = value; } @@ -100,49 +78,37 @@ 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; 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,29 +117,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. 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 { @@ -183,14 +149,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 @@ -198,26 +161,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.
    * 
@@ -227,21 +185,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 @@ -249,26 +204,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.
    * 
@@ -278,21 +228,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 @@ -300,26 +247,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.
    * 
@@ -329,21 +271,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 @@ -351,26 +290,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.
    * 
@@ -380,21 +314,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 @@ -402,26 +333,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.
    * 
@@ -431,22 +357,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 @@ -454,27 +377,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.
@@ -485,21 +403,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 @@ -507,26 +422,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.
    * 
@@ -536,22 +446,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 @@ -559,27 +466,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.
@@ -588,16 +490,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;
@@ -609,7 +509,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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_);
     }
@@ -650,44 +551,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;
@@ -697,40 +590,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:
@@ -789,136 +690,130 @@ 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(); @@ -954,9 +849,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 @@ -975,8 +870,7 @@ 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); + com.google.cloud.contentwarehouse.v1.Property result = new com.google.cloud.contentwarehouse.v1.Property(this); result.name_ = name_; if (valuesCase_ == 2) { if (integerValuesBuilder_ == null) { @@ -1043,39 +937,38 @@ public com.google.cloud.contentwarehouse.v1.Property 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.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; @@ -1089,50 +982,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(); @@ -1160,67 +1044,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - 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(); + + 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) { @@ -1230,12 +1120,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() { @@ -1245,22 +1135,21 @@ public Builder clearValues() { return this; } + 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; @@ -1269,21 +1158,20 @@ 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 { @@ -1291,80 +1179,67 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } 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 @@ -1372,14 +1247,11 @@ public boolean hasIntegerValues() { return valuesCase_ == 2; } /** - * - * *
      * Integer property values.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return The integerValues. */ @java.lang.Override @@ -1397,8 +1269,6 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { } } /** - * - * *
      * Integer property values.
      * 
@@ -1419,8 +1289,6 @@ public Builder setIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerArra return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1439,8 +1307,6 @@ public Builder setIntegerValues( return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1449,13 +1315,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; } @@ -1471,8 +1334,6 @@ public Builder mergeIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerAr return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1496,8 +1357,6 @@ public Builder clearIntegerValues() { return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1508,8 +1367,6 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray.Builder getIntegerValue return getIntegerValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Integer property values.
      * 
@@ -1528,8 +1385,6 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu } } /** - * - * *
      * Integer property values.
      * 
@@ -1537,44 +1392,32 @@ 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()); values_ = null; } valuesCase_ = 2; - onChanged(); - ; + onChanged();; return integerValuesBuilder_; } 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 @@ -1582,14 +1425,11 @@ public boolean hasFloatValues() { return valuesCase_ == 3; } /** - * - * *
      * Float property values.
      * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return The floatValues. */ @java.lang.Override @@ -1607,8 +1447,6 @@ public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { } } /** - * - * *
      * Float property values.
      * 
@@ -1629,8 +1467,6 @@ public Builder setFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray va return this; } /** - * - * *
      * Float property values.
      * 
@@ -1649,8 +1485,6 @@ public Builder setFloatValues( return this; } /** - * - * *
      * Float property values.
      * 
@@ -1659,13 +1493,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; } @@ -1681,8 +1512,6 @@ public Builder mergeFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray return this; } /** - * - * *
      * Float property values.
      * 
@@ -1706,8 +1535,6 @@ public Builder clearFloatValues() { return this; } /** - * - * *
      * Float property values.
      * 
@@ -1718,8 +1545,6 @@ public com.google.cloud.contentwarehouse.v1.FloatArray.Builder getFloatValuesBui return getFloatValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Float property values.
      * 
@@ -1738,8 +1563,6 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr } } /** - * - * *
      * Float property values.
      * 
@@ -1747,44 +1570,32 @@ 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()); values_ = null; } valuesCase_ = 3; - onChanged(); - ; + onChanged();; return floatValuesBuilder_; } 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 @@ -1792,14 +1603,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 @@ -1817,8 +1625,6 @@ public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { } } /** - * - * *
      * String/text property values.
      * 
@@ -1839,8 +1645,6 @@ public Builder setTextValues(com.google.cloud.contentwarehouse.v1.TextArray valu return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1859,8 +1663,6 @@ public Builder setTextValues( return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1869,13 +1671,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; } @@ -1891,8 +1690,6 @@ public Builder mergeTextValues(com.google.cloud.contentwarehouse.v1.TextArray va return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1916,8 +1713,6 @@ public Builder clearTextValues() { return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1928,8 +1723,6 @@ public com.google.cloud.contentwarehouse.v1.TextArray.Builder getTextValuesBuild return getTextValuesFieldBuilder().getBuilder(); } /** - * - * *
      * String/text property values.
      * 
@@ -1948,8 +1741,6 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu } } /** - * - * *
      * String/text property values.
      * 
@@ -1957,44 +1748,32 @@ 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()); values_ = null; } valuesCase_ = 4; - onChanged(); - ; + onChanged();; return textValuesBuilder_; } 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 @@ -2002,14 +1781,11 @@ public boolean hasEnumValues() { return valuesCase_ == 5; } /** - * - * *
      * Enum property values.
      * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return The enumValues. */ @java.lang.Override @@ -2027,8 +1803,6 @@ public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { } } /** - * - * *
      * Enum property values.
      * 
@@ -2049,8 +1823,6 @@ public Builder setEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray valu return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2069,8 +1841,6 @@ public Builder setEnumValues( return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2079,13 +1849,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; } @@ -2101,8 +1868,6 @@ public Builder mergeEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray va return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2126,8 +1891,6 @@ public Builder clearEnumValues() { return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2138,8 +1901,6 @@ public com.google.cloud.contentwarehouse.v1.EnumArray.Builder getEnumValuesBuild return getEnumValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Enum property values.
      * 
@@ -2158,8 +1919,6 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu } } /** - * - * *
      * Enum property values.
      * 
@@ -2167,44 +1926,32 @@ 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()); values_ = null; } valuesCase_ = 5; - onChanged(); - ; + onChanged();; return enumValuesBuilder_; } 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 @@ -2212,14 +1959,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 @@ -2237,8 +1981,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { } } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2259,8 +2001,6 @@ public Builder setPropertyValues(com.google.cloud.contentwarehouse.v1.PropertyAr return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2279,8 +2019,6 @@ public Builder setPropertyValues( return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2289,13 +2027,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; } @@ -2311,8 +2046,6 @@ public Builder mergePropertyValues(com.google.cloud.contentwarehouse.v1.Property return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2336,8 +2069,6 @@ public Builder clearPropertyValues() { return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2348,8 +2079,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal return getPropertyValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2357,8 +2086,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 { @@ -2369,8 +2097,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal } } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2378,45 +2104,33 @@ 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()); values_ = null; } valuesCase_ = 6; - onChanged(); - ; + onChanged();; return propertyValuesBuilder_; } 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 @@ -2424,15 +2138,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 @@ -2450,8 +2161,6 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() { } } /** - * - * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2473,8 +2182,6 @@ public Builder setDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTimeAr
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2494,8 +2201,6 @@ public Builder setDateTimeValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2505,13 +2210,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;
         }
@@ -2527,8 +2229,6 @@ public Builder mergeDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTime
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2553,8 +2253,6 @@ public Builder clearDateTimeValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2566,8 +2264,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.
@@ -2576,8 +2272,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 {
@@ -2588,8 +2283,6 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
       }
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2598,44 +2291,32 @@ 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());
         values_ = null;
       }
       valuesCase_ = 7;
-      onChanged();
-      ;
+      onChanged();;
       return dateTimeValuesBuilder_;
     }
 
     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 @@ -2643,14 +2324,11 @@ public boolean hasMapProperty() { return valuesCase_ == 8; } /** - * - * *
      * Map property values.
      * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return The mapProperty. */ @java.lang.Override @@ -2668,8 +2346,6 @@ public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { } } /** - * - * *
      * Map property values.
      * 
@@ -2690,8 +2366,6 @@ public Builder setMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty v return this; } /** - * - * *
      * Map property values.
      * 
@@ -2710,8 +2384,6 @@ public Builder setMapProperty( return this; } /** - * - * *
      * Map property values.
      * 
@@ -2720,13 +2392,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; } @@ -2742,8 +2411,6 @@ public Builder mergeMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty return this; } /** - * - * *
      * Map property values.
      * 
@@ -2767,8 +2434,6 @@ public Builder clearMapProperty() { return this; } /** - * - * *
      * Map property values.
      * 
@@ -2779,8 +2444,6 @@ public com.google.cloud.contentwarehouse.v1.MapProperty.Builder getMapPropertyBu return getMapPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Map property values.
      * 
@@ -2799,8 +2462,6 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO } } /** - * - * *
      * Map property values.
      * 
@@ -2808,45 +2469,33 @@ 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()); values_ = null; } valuesCase_ = 8; - onChanged(); - ; + onChanged();; return mapPropertyBuilder_; } 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 @@ -2854,15 +2503,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 @@ -2880,8 +2526,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues() } } /** - * - * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2903,8 +2547,6 @@ public Builder setTimestampValues(com.google.cloud.contentwarehouse.v1.Timestamp
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2924,8 +2566,6 @@ public Builder setTimestampValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2935,14 +2575,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;
         }
@@ -2958,8 +2594,6 @@ public Builder mergeTimestampValues(com.google.cloud.contentwarehouse.v1.Timesta
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2984,8 +2618,6 @@ public Builder clearTimestampValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2997,8 +2629,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       return getTimestampValuesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -3007,8 +2637,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 {
@@ -3019,8 +2648,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       }
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -3029,32 +2656,26 @@ 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());
         values_ = null;
       }
       valuesCase_ = 9;
-      onChanged();
-      ;
+      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);
     }
 
@@ -3064,12 +2685,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();
   }
@@ -3078,27 +2699,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;
@@ -3113,4 +2734,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 2d3c68cde132..c1283acb097a 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,77 +1,56 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List properties_; /** - * - * *
    * List of property values.
    * 
@@ -83,8 +62,6 @@ public java.util.List getProperti return properties_; } /** - * - * *
    * List of property values.
    * 
@@ -92,13 +69,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.
    * 
@@ -110,8 +85,6 @@ public int getPropertiesCount() { return properties_.size(); } /** - * - * *
    * List of property values.
    * 
@@ -123,8 +96,6 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** - * - * *
    * List of property values.
    * 
@@ -132,12 +103,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; @@ -149,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -163,7 +135,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; @@ -173,15 +146,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; } @@ -203,135 +176,129 @@ 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(); @@ -346,9 +313,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 @@ -367,8 +334,7 @@ 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); int from_bitField0_ = bitField0_; if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -387,39 +353,38 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray 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.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; @@ -427,8 +392,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()) { @@ -447,10 +411,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_); } @@ -482,26 +445,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) { @@ -511,29 +473,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.
      * 
@@ -548,8 +502,6 @@ public java.util.List getProperti } } /** - * - * *
      * List of property values.
      * 
@@ -564,8 +516,6 @@ public int getPropertiesCount() { } } /** - * - * *
      * List of property values.
      * 
@@ -580,15 +530,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(); @@ -602,8 +551,6 @@ public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of property values.
      * 
@@ -622,8 +569,6 @@ public Builder setProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -644,15 +589,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(); @@ -666,8 +610,6 @@ public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of property values.
      * 
@@ -686,8 +628,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -706,8 +646,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -718,7 +656,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); @@ -726,8 +665,6 @@ public Builder addAllProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -745,8 +682,6 @@ public Builder clearProperties() { return this; } /** - * - * *
      * List of property values.
      * 
@@ -764,20 +699,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.
      * 
@@ -787,22 +719,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 { @@ -810,8 +739,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** - * - * *
      * List of property values.
      * 
@@ -819,55 +746,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); } @@ -877,12 +798,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(); } @@ -891,27 +812,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; @@ -926,4 +847,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 98c183b26ab3..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 72% 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 9ec683665c87..88c2c1302d5c 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -44,36 +26,33 @@ private PropertyDefinition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PropertyDefinition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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); } private int valueTypeOptionsCase_ = 0; 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), @@ -85,7 +64,6 @@ public enum ValueTypeOptionsCase TIMESTAMP_TYPE_OPTIONS(16), VALUETYPEOPTIONS_NOT_SET(0); private final int value; - private ValueTypeOptionsCase(int value) { this.value = value; } @@ -101,43 +79,32 @@ 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -146,7 +113,6 @@ public ValueTypeOptionsCase getValueTypeOptionsCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -155,15 +121,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.
@@ -172,15 +137,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 { @@ -191,14 +157,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 12; 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 @@ -207,29 +170,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 { @@ -240,14 +203,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int IS_REPEATABLE_FIELD_NUMBER = 2; private boolean isRepeatable_; /** - * - * *
    * Whether the property can have multiple values.
    * 
* * bool is_repeatable = 2; - * * @return The isRepeatable. */ @java.lang.Override @@ -258,15 +218,12 @@ public boolean getIsRepeatable() { public static final int IS_FILTERABLE_FIELD_NUMBER = 3; 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 @@ -277,14 +234,11 @@ public boolean getIsFilterable() { public static final int IS_SEARCHABLE_FIELD_NUMBER = 4; private boolean isSearchable_; /** - * - * *
    * Indicates that the property should be included in a global search.
    * 
* * bool is_searchable = 4; - * * @return The isSearchable. */ @java.lang.Override @@ -295,14 +249,11 @@ public boolean getIsSearchable() { public static final int IS_METADATA_FIELD_NUMBER = 5; private boolean isMetadata_; /** - * - * *
    * Whether the property is user supplied metadata.
    * 
* * bool is_metadata = 5; - * * @return The isMetadata. */ @java.lang.Override @@ -313,8 +264,6 @@ public boolean getIsMetadata() { public static final int IS_REQUIRED_FIELD_NUMBER = 14; private boolean isRequired_; /** - * - * *
    * Whether the property is mandatory.
    * Default is 'false', i.e. populating property value can be skipped.
@@ -322,7 +271,6 @@ public boolean getIsMetadata() {
    * 
* * bool is_required = 14; - * * @return The isRequired. */ @java.lang.Override @@ -332,14 +280,11 @@ public boolean getIsRequired() { 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 @@ -347,26 +292,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.
    * 
@@ -374,24 +314,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 @@ -399,26 +335,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.
    * 
@@ -426,24 +357,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 @@ -451,26 +378,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.
    * 
@@ -478,24 +400,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 @@ -503,26 +421,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.
    * 
@@ -530,24 +443,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 @@ -555,26 +464,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.
    * 
@@ -582,25 +486,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 @@ -608,27 +508,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.
@@ -637,24 +532,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 @@ -662,26 +553,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.
    * 
@@ -691,23 +577,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 @@ -715,47 +597,38 @@ 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(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -767,7 +640,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -784,42 +658,34 @@ 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_); } getUnknownFields().writeTo(output); } @@ -834,62 +700,59 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -899,46 +762,60 @@ public int getSerializedSize() { @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 (!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: @@ -959,15 +836,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()); switch (valueTypeOptionsCase_) { case 7: hash = (37 * hash) + INTEGER_TYPE_OPTIONS_FIELD_NUMBER; @@ -1010,136 +892,129 @@ 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(); @@ -1187,9 +1062,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 @@ -1208,8 +1083,7 @@ 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); result.name_ = name_; result.displayName_ = displayName_; result.isRepeatable_ = isRepeatable_; @@ -1282,39 +1156,38 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.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; @@ -1322,8 +1195,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_; onChanged(); @@ -1348,50 +1220,41 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition setIsRequired(other.getIsRequired()); } 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(); @@ -1419,108 +1282,103 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - isRepeatable_ = input.readBool(); - - break; - } // case 16 - case 24: - { - isFilterable_ = input.readBool(); - - break; - } // case 24 - case 32: - { - isSearchable_ = input.readBool(); - - break; - } // case 32 - case 40: - { - isMetadata_ = input.readBool(); - - 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(); - - break; - } // case 98 - case 106: - { - input.readMessage( - getDateTimeTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 13; - break; - } // case 106 - case 112: - { - isRequired_ = input.readBool(); - - 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 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + isRepeatable_ = input.readBool(); + + break; + } // case 16 + case 24: { + isFilterable_ = input.readBool(); + + break; + } // case 24 + case 32: { + isSearchable_ = input.readBool(); + + break; + } // case 32 + case 40: { + isMetadata_ = input.readBool(); + + 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(); + + break; + } // case 98 + case 106: { + input.readMessage( + getDateTimeTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 13; + break; + } // case 106 + case 112: { + isRequired_ = input.readBool(); + + 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 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1530,12 +1388,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() { @@ -1545,10 +1403,9 @@ public Builder clearValueTypeOptions() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1557,13 +1414,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; @@ -1572,8 +1429,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1582,14 +1437,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 { @@ -1597,8 +1453,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.
@@ -1607,22 +1461,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1631,18 +1483,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1651,16 +1500,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1668,20 +1517,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; @@ -1690,21 +1537,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 { @@ -1712,76 +1558,66 @@ 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) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); 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 @@ -1789,52 +1625,43 @@ 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. */ public Builder setIsRepeatable(boolean value) { - + isRepeatable_ = value; onChanged(); return this; } /** - * - * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; - * * @return This builder for chaining. */ public Builder clearIsRepeatable() { - + isRepeatable_ = false; onChanged(); 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 @@ -1842,53 +1669,44 @@ 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. */ public Builder setIsFilterable(boolean value) { - + isFilterable_ = value; onChanged(); 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() { - + isFilterable_ = false; onChanged(); 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 @@ -1896,51 +1714,42 @@ 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. */ public Builder setIsSearchable(boolean value) { - + isSearchable_ = value; onChanged(); 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() { - + isSearchable_ = false; onChanged(); return this; } - private boolean isMetadata_; + private boolean isMetadata_ ; /** - * - * *
      * Whether the property is user supplied metadata.
      * 
* * bool is_metadata = 5; - * * @return The isMetadata. */ @java.lang.Override @@ -1948,45 +1757,37 @@ public boolean getIsMetadata() { return isMetadata_; } /** - * - * *
      * Whether the property is user supplied metadata.
      * 
* * bool is_metadata = 5; - * * @param value The isMetadata to set. * @return This builder for chaining. */ public Builder setIsMetadata(boolean value) { - + isMetadata_ = value; onChanged(); return this; } /** - * - * *
      * Whether the property is user supplied metadata.
      * 
* * bool is_metadata = 5; - * * @return This builder for chaining. */ public Builder clearIsMetadata() { - + isMetadata_ = false; onChanged(); return this; } - private boolean isRequired_; + private boolean isRequired_ ; /** - * - * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -1994,7 +1795,6 @@ public Builder clearIsMetadata() {
      * 
* * bool is_required = 14; - * * @return The isRequired. */ @java.lang.Override @@ -2002,8 +1802,6 @@ public boolean getIsRequired() { return isRequired_; } /** - * - * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -2011,19 +1809,16 @@ public boolean getIsRequired() {
      * 
* * bool is_required = 14; - * * @param value The isRequired to set. * @return This builder for chaining. */ public Builder setIsRequired(boolean value) { - + isRequired_ = value; onChanged(); return this; } /** - * - * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -2031,30 +1826,23 @@ public Builder setIsRequired(boolean value) {
      * 
* * bool is_required = 14; - * * @return This builder for chaining. */ public Builder clearIsRequired() { - + isRequired_ = false; onChanged(); return this; } 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 @@ -2062,14 +1850,11 @@ public boolean hasIntegerTypeOptions() { return valueTypeOptionsCase_ == 7; } /** - * - * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return The integerTypeOptions. */ @java.lang.Override @@ -2087,16 +1872,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(); @@ -2110,8 +1892,6 @@ public Builder setIntegerTypeOptions( return this; } /** - * - * *
      * Integer property.
      * 
@@ -2130,25 +1910,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; } @@ -2164,8 +1937,6 @@ public Builder mergeIntegerTypeOptions( return this; } /** - * - * *
      * Integer property.
      * 
@@ -2189,21 +1960,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.
      * 
@@ -2211,8 +1977,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 { @@ -2223,8 +1988,6 @@ public Builder clearIntegerTypeOptions() { } } /** - * - * *
      * Integer property.
      * 
@@ -2232,45 +1995,32 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 7; - onChanged(); - ; + onChanged();; return integerTypeOptionsBuilder_; } 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 @@ -2278,14 +2028,11 @@ public boolean hasFloatTypeOptions() { return valueTypeOptionsCase_ == 8; } /** - * - * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return The floatTypeOptions. */ @java.lang.Override @@ -2303,16 +2050,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(); @@ -2326,8 +2070,6 @@ public Builder setFloatTypeOptions( return this; } /** - * - * *
      * Float property.
      * 
@@ -2346,25 +2088,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; } @@ -2380,8 +2115,6 @@ public Builder mergeFloatTypeOptions( return this; } /** - * - * *
      * Float property.
      * 
@@ -2405,21 +2138,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.
      * 
@@ -2427,8 +2155,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 { @@ -2439,8 +2166,6 @@ public Builder clearFloatTypeOptions() { } } /** - * - * *
      * Float property.
      * 
@@ -2448,45 +2173,32 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 8; - onChanged(); - ; + onChanged();; return floatTypeOptionsBuilder_; } 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 @@ -2494,14 +2206,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 @@ -2519,8 +2228,6 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() } } /** - * - * *
      * Text/string property.
      * 
@@ -2541,8 +2248,6 @@ public Builder setTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeO return this; } /** - * - * *
      * Text/string property.
      * 
@@ -2561,25 +2266,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; } @@ -2595,8 +2293,6 @@ public Builder mergeTextTypeOptions( return this; } /** - * - * *
      * Text/string property.
      * 
@@ -2620,21 +2316,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.
      * 
@@ -2642,8 +2333,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 { @@ -2654,8 +2344,6 @@ public Builder clearTextTypeOptions() { } } /** - * - * *
      * Text/string property.
      * 
@@ -2663,46 +2351,32 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 9; - onChanged(); - ; + onChanged();; return textTypeOptionsBuilder_; } 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 @@ -2710,15 +2384,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 @@ -2736,17 +2406,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(); @@ -2760,14 +2426,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) { @@ -2781,26 +2444,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; } @@ -2816,14 +2471,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) { @@ -2842,32 +2494,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 { @@ -2878,55 +2522,39 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 10; - onChanged(); - ; + onChanged();; return propertyTypeOptionsBuilder_; } 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 @@ -2934,14 +2562,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 @@ -2959,8 +2584,6 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() } } /** - * - * *
      * Enum/categorical property.
      * 
@@ -2981,8 +2604,6 @@ public Builder setEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeO return this; } /** - * - * *
      * Enum/categorical property.
      * 
@@ -3001,25 +2622,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; } @@ -3035,8 +2649,6 @@ public Builder mergeEnumTypeOptions( return this; } /** - * - * *
      * Enum/categorical property.
      * 
@@ -3060,21 +2672,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.
      * 
@@ -3082,8 +2689,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 { @@ -3094,8 +2700,6 @@ public Builder clearEnumTypeOptions() { } } /** - * - * *
      * Enum/categorical property.
      * 
@@ -3103,47 +2707,33 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 11; - onChanged(); - ; + onChanged();; return enumTypeOptionsBuilder_; } 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 @@ -3151,16 +2741,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 @@ -3178,18 +2764,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(); @@ -3203,15 +2785,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) { @@ -3225,27 +2804,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; } @@ -3261,15 +2832,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) { @@ -3288,34 +2856,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 { @@ -3326,56 +2886,40 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 13; - onChanged(); - ; + onChanged();; return dateTimeTypeOptionsBuilder_; } 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 @@ -3383,14 +2927,11 @@ public boolean hasMapTypeOptions() { return valueTypeOptionsCase_ == 15; } /** - * - * *
      * Map property.
      * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return The mapTypeOptions. */ @java.lang.Override @@ -3408,8 +2949,6 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { } } /** - * - * *
      * Map property.
      * 
@@ -3430,8 +2969,6 @@ public Builder setMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOpt return this; } /** - * - * *
      * Map property.
      * 
@@ -3450,8 +2987,6 @@ public Builder setMapTypeOptions( return this; } /** - * - * *
      * Map property.
      * 
@@ -3460,14 +2995,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; } @@ -3483,8 +3014,6 @@ public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeO return this; } /** - * - * *
      * Map property.
      * 
@@ -3508,8 +3037,6 @@ public Builder clearMapTypeOptions() { return this; } /** - * - * *
      * Map property.
      * 
@@ -3520,8 +3047,6 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt return getMapTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Map property.
      * 
@@ -3529,8 +3054,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 { @@ -3541,8 +3065,6 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt } } /** - * - * *
      * Map property.
      * 
@@ -3550,47 +3072,33 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 15; - onChanged(); - ; + onChanged();; return mapTypeOptionsBuilder_; } 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 @@ -3598,16 +3106,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 @@ -3625,18 +3129,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(); @@ -3650,15 +3150,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) { @@ -3672,27 +3169,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; } @@ -3708,15 +3197,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) { @@ -3735,34 +3221,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 { @@ -3773,44 +3251,34 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 16; - onChanged(); - ; + onChanged();; return timestampTypeOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3820,12 +3288,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(); } @@ -3834,27 +3302,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; @@ -3869,4 +3337,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 85% 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 aab61c8d9d88..185e0f215a8b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,92 +28,73 @@ 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.
    * 
* * 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.
@@ -142,38 +102,29 @@ public interface PropertyDefinitionOrBuilder
    * 
* * bool is_required = 14; - * * @return The isRequired. */ boolean getIsRequired(); /** - * - * *
    * 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.
    * 
@@ -183,32 +134,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.
    * 
@@ -218,32 +161,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.
    * 
@@ -253,68 +188,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.
    * 
@@ -324,34 +242,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.
@@ -359,36 +269,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.
    * 
@@ -398,47 +299,34 @@ 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(); - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase - getValueTypeOptionsCase(); + public 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 1097ed6351ce..3621fe9f6a44 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,35 +22,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object documentSchemaName_; /** - * - * *
    * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
    * Format:
@@ -72,7 +55,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 @@ -81,15 +63,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].
    * Format:
@@ -97,15 +78,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 { @@ -116,8 +98,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { public static final int CONDITION_FIELD_NUMBER = 2; private volatile java.lang.Object condition_; /** - * - * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -154,7 +134,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() {
    * 
* * string condition = 2; - * * @return The condition. */ @java.lang.Override @@ -163,15 +142,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.
@@ -208,15 +186,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 { @@ -225,7 +204,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -267,16 +246,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; } @@ -298,127 +278,125 @@ 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(); @@ -430,9 +408,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 @@ -451,8 +429,7 @@ 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); + com.google.cloud.contentwarehouse.v1.PropertyFilter result = new com.google.cloud.contentwarehouse.v1.PropertyFilter(this); result.documentSchemaName_ = documentSchemaName_; result.condition_ = condition_; onBuilt(); @@ -463,39 +440,38 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter 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.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; @@ -503,8 +479,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_; onChanged(); @@ -539,25 +514,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - documentSchemaName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - condition_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + documentSchemaName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + condition_ = input.readStringRequireUtf8(); + + 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,8 +542,6 @@ public Builder mergeFrom( private java.lang.Object documentSchemaName_ = ""; /** - * - * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -579,13 +549,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; @@ -594,8 +564,6 @@ public java.lang.String getDocumentSchemaName() { } } /** - * - * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -603,14 +571,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 { @@ -618,8 +587,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } } /** - * - * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -627,22 +594,20 @@ 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) { + public Builder setDocumentSchemaName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentSchemaName_ = value; onChanged(); return this; } /** - * - * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -650,18 +615,15 @@ public Builder setDocumentSchemaName(java.lang.String value) {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { - + documentSchemaName_ = getDefaultInstance().getDocumentSchemaName(); onChanged(); return this; } /** - * - * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -669,16 +631,16 @@ 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) { + public Builder setDocumentSchemaNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentSchemaName_ = value; onChanged(); return this; @@ -686,8 +648,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.
@@ -724,13 +684,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; @@ -739,8 +699,6 @@ public java.lang.String getCondition() { } } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -777,14 +735,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 { @@ -792,8 +751,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -830,22 +787,20 @@ 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) { + public Builder setCondition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + condition_ = value; onChanged(); return this; } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -882,18 +837,15 @@ public Builder setCondition(java.lang.String value) {
      * 
* * string condition = 2; - * * @return This builder for chaining. */ public Builder clearCondition() { - + condition_ = getDefaultInstance().getCondition(); onChanged(); return this; } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -930,23 +882,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) { + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = 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); } @@ -956,12 +908,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(); } @@ -970,27 +922,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; @@ -1005,4 +957,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 c3b2bcc9f4e9..fe94fc711f1b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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].
    * Format:
@@ -33,13 +15,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].
    * Format:
@@ -47,14 +26,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.
@@ -91,13 +68,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.
@@ -134,8 +108,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 dac438381319..3e327140abdd 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,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * 
@@ -84,32 +55,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.
    * 
@@ -119,32 +82,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.
    * 
@@ -154,32 +109,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.
    * 
@@ -189,32 +136,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.
    * 
@@ -224,34 +163,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.
@@ -262,32 +193,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.
    * 
@@ -297,34 +220,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 bff407ca7a3d..58aaa13de8ac 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,156 +1,114 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; - 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; @@ -162,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -176,8 +135,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; @@ -187,15 +146,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; } @@ -217,136 +176,129 @@ 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(); @@ -361,9 +313,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 @@ -382,8 +334,7 @@ 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); int from_bitField0_ = bitField0_; if (propertyDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -402,39 +353,38 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions 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.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; @@ -442,8 +392,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()) { @@ -462,10 +411,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_); } @@ -497,27 +445,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) { @@ -527,40 +473,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 { @@ -568,15 +502,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) { @@ -586,18 +516,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 { @@ -605,15 +530,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) { @@ -630,19 +551,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()); @@ -653,18 +569,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(); @@ -678,15 +589,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) { @@ -703,15 +610,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) { @@ -725,19 +628,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()); @@ -748,22 +646,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); @@ -771,15 +665,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) { @@ -792,15 +682,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) { @@ -813,53 +699,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 { @@ -867,65 +739,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(), @@ -934,9 +786,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); } @@ -946,12 +798,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(); } @@ -960,27 +812,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; @@ -995,4 +847,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 69% 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 da7cda01a694..4821a8245295 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; @@ -44,42 +26,38 @@ private PublishAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -88,30 +66,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 { @@ -122,42 +100,34 @@ public com.google.protobuf.ByteString getTopicIdBytes() { public static final int MESSAGES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList messages_; /** - * - * *
    * 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 +135,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 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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 +196,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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,135 +230,129 @@ 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(); @@ -401,9 +364,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_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 @@ -422,8 +385,7 @@ 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); + com.google.cloud.contentwarehouse.v1.PublishAction result = new com.google.cloud.contentwarehouse.v1.PublishAction(this); int from_bitField0_ = bitField0_; result.topicId_ = topicId_; if (((bitField0_ & 0x00000001) != 0)) { @@ -439,39 +401,38 @@ public com.google.cloud.contentwarehouse.v1.PublishAction 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.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; @@ -479,8 +440,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_; onChanged(); @@ -521,26 +481,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topicId_ = input.readStringRequireUtf8(); - - 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(); + + 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) { @@ -550,26 +507,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; @@ -578,22 +532,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 { @@ -601,115 +554,98 @@ 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) { + public Builder setTopicId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topicId_ = value; 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() { - + topicId_ = getDefaultInstance().getTopicId(); onChanged(); 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) { + public Builder setTopicIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topicId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList messages_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -717,90 +653,80 @@ 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) { + public Builder setMessages( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); + throw new NullPointerException(); + } + ensureMessagesIsMutable(); messages_.set(index, value); onChanged(); 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) { + public Builder addMessages( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); + throw new NullPointerException(); + } + ensureMessagesIsMutable(); messages_.add(value); onChanged(); 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_); onChanged(); return this; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @return This builder for chaining. */ public Builder clearMessages() { @@ -810,30 +736,28 @@ public Builder clearMessages() { 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) { + public Builder addMessagesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -843,12 +767,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(); } @@ -857,27 +781,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; @@ -892,4 +816,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 8e06f58aa0c9..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 f2e841cfa172..92ab17b03b55 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,106 +1,78 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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.).
@@ -108,55 +80,51 @@ 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();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    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_;
     /**
-     *
-     *
      * 
      * Start index of the highlight.
      * 
* * int32 start_index = 1; - * * @return The startIndex. */ @java.lang.Override @@ -167,14 +135,11 @@ public int getStartIndex() { public static final int END_INDEX_FIELD_NUMBER = 2; private int endIndex_; /** - * - * *
      * End index of the highlight, exclusive.
      * 
* * int32 end_index = 2; - * * @return The endIndex. */ @java.lang.Override @@ -183,7 +148,6 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,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 (startIndex_ != 0) { output.writeInt32(1, startIndex_); } @@ -212,10 +177,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; @@ -225,16 +192,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; } @@ -256,94 +224,87 @@ 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 @@ -353,8 +314,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.).
@@ -362,33 +321,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();
@@ -400,9 +359,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
@@ -421,8 +380,7 @@ 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);
+        com.google.cloud.contentwarehouse.v1.QAResult.Highlight result = new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(this);
         result.startIndex_ = startIndex_;
         result.endIndex_ = endIndex_;
         onBuilt();
@@ -433,41 +391,38 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.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();
-
-                  break;
-                } // case 8
-              case 16:
-                {
-                  endIndex_ = input.readInt32();
-
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                startIndex_ = input.readInt32();
+
+                break;
+              } // case 8
+              case 16: {
+                endIndex_ = input.readInt32();
+
+                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) {
@@ -538,16 +489,13 @@ public Builder mergeFrom(
         return this;
       }
 
-      private int startIndex_;
+      private int startIndex_ ;
       /**
-       *
-       *
        * 
        * Start index of the highlight.
        * 
* * int32 start_index = 1; - * * @return The startIndex. */ @java.lang.Override @@ -555,51 +503,42 @@ 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. */ public Builder setStartIndex(int value) { - + startIndex_ = value; onChanged(); return this; } /** - * - * *
        * Start index of the highlight.
        * 
* * int32 start_index = 1; - * * @return This builder for chaining. */ public Builder clearStartIndex() { - + startIndex_ = 0; onChanged(); return this; } - private int endIndex_; + private int endIndex_ ; /** - * - * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; - * * @return The endIndex. */ @java.lang.Override @@ -607,41 +546,34 @@ 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. */ public Builder setEndIndex(int value) { - + endIndex_ = value; onChanged(); return this; } /** - * - * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; - * * @return This builder for chaining. */ public Builder clearEndIndex() { - + endIndex_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -654,12 +586,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(); } @@ -668,28 +600,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; @@ -704,13 +635,12 @@ 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; private java.util.List highlights_; /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -718,13 +648,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.
    * 
@@ -732,13 +659,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.
    * 
@@ -750,8 +675,6 @@ public int getHighlightsCount() { return highlights_.size(); } /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -763,8 +686,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int return highlights_.get(index); } /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -780,8 +701,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; private float confidenceScore_; /** - * - * *
    * The calibrated confidence score for this document, in the range
    * [0., 1.]. This represents the confidence level for whether the returned
@@ -789,7 +708,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl
    * 
* * float confidence_score = 2; - * * @return The confidenceScore. */ @java.lang.Override @@ -798,7 +716,6 @@ public float getConfidenceScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -810,7 +727,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -827,10 +745,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; @@ -840,17 +760,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; } @@ -867,142 +788,137 @@ 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(); @@ -1019,9 +935,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 @@ -1040,8 +956,7 @@ 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); int from_bitField0_ = bitField0_; if (highlightsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1061,39 +976,38 @@ public com.google.cloud.contentwarehouse.v1.QAResult 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.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; @@ -1120,10 +1034,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_); } @@ -1158,33 +1071,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(); + 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(); - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -1194,38 +1104,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 { @@ -1233,8 +1133,6 @@ private void ensureHighlightsIsMutable() { } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1249,8 +1147,6 @@ public int getHighlightsCount() { } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1265,8 +1161,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1288,8 +1182,6 @@ public Builder setHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1297,8 +1189,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()); @@ -1309,8 +1200,6 @@ public Builder setHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1331,8 +1220,6 @@ public Builder addHighlights(com.google.cloud.contentwarehouse.v1.QAResult.Highl return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1354,8 +1241,6 @@ public Builder addHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1374,8 +1259,6 @@ public Builder addHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1383,8 +1266,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()); @@ -1395,8 +1277,6 @@ public Builder addHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1404,11 +1284,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); @@ -1416,8 +1296,6 @@ public Builder addAllHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1435,8 +1313,6 @@ public Builder clearHighlights() { return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1454,8 +1330,6 @@ public Builder removeHighlights(int index) { return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1467,8 +1341,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder getHighli return getHighlightsFieldBuilder().getBuilder(index); } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1478,23 +1350,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 { @@ -1502,8 +1370,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1511,12 +1377,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.
      * 
@@ -1525,45 +1389,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
@@ -1571,7 +1427,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighli
      * 
* * float confidence_score = 2; - * * @return The confidenceScore. */ @java.lang.Override @@ -1579,8 +1434,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
@@ -1588,19 +1441,16 @@ public float getConfidenceScore() {
      * 
* * float confidence_score = 2; - * * @param value The confidenceScore to set. * @return This builder for chaining. */ public Builder setConfidenceScore(float value) { - + confidenceScore_ = value; onChanged(); return this; } /** - * - * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1608,18 +1458,17 @@ public Builder setConfidenceScore(float value) {
      * 
* * float confidence_score = 2; - * * @return This builder for chaining. */ public Builder clearConfidenceScore() { - + confidenceScore_ = 0F; 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); } @@ -1629,12 +1478,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(); } @@ -1643,27 +1492,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; @@ -1678,4 +1527,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 5b2190629d79..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 023e6b26258b..52bcc9b57cf2 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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
    * 
@@ -92,8 +64,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
    * No raw document specified or it is non-parsable
    * 
@@ -102,8 +72,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Adobe PDF format
    * 
@@ -112,8 +80,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_PDF_VALUE = 1; /** - * - * *
    * Microsoft Word format
    * 
@@ -122,8 +88,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_DOCX_VALUE = 2; /** - * - * *
    * Microsoft Excel format
    * 
@@ -132,8 +96,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_XLSX_VALUE = 3; /** - * - * *
    * Microsoft Powerpoint format
    * 
@@ -142,8 +104,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
    * 
@@ -152,6 +112,7 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_TEXT_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -176,20 +137,13 @@ 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; - 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; + default: return null; } } @@ -197,28 +151,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); } @@ -227,7 +181,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; @@ -243,3 +198,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 68% 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 ab3547962883..767490d9953b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,41 +27,37 @@ private RemoveFromFolderAction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RemoveFromFolderAction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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;
   private volatile java.lang.Object condition_;
   /**
-   *
-   *
    * 
    * Condition of the action to be executed.
    * 
* * string condition = 1; - * * @return The condition. */ @java.lang.Override @@ -88,29 +66,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 { @@ -121,8 +99,6 @@ public com.google.protobuf.ByteString getConditionBytes() { public static final int FOLDER_FIELD_NUMBER = 2; private volatile java.lang.Object folder_; /** - * - * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -130,7 +106,6 @@ public com.google.protobuf.ByteString getConditionBytes() {
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The folder. */ @java.lang.Override @@ -139,15 +114,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:
@@ -155,15 +129,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 { @@ -172,7 +147,6 @@ public com.google.protobuf.ByteString getFolderBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -214,16 +189,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; } @@ -245,104 +221,96 @@ 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.
@@ -350,32 +318,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();
@@ -387,9 +356,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
@@ -408,8 +377,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction result = new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(this);
       result.condition_ = condition_;
       result.folder_ = folder_;
       onBuilt();
@@ -420,39 +388,38 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction 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.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;
@@ -460,8 +427,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_;
         onChanged();
@@ -496,25 +462,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                condition_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                folder_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              condition_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              folder_ = input.readStringRequireUtf8();
+
+              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) {
@@ -527,20 +490,18 @@ public Builder mergeFrom(
 
     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; @@ -549,21 +510,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 { @@ -571,61 +531,54 @@ 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) { + public Builder setCondition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + condition_ = value; onChanged(); return this; } /** - * - * *
      * Condition of the action to be executed.
      * 
* * string condition = 1; - * * @return This builder for chaining. */ public Builder clearCondition() { - + condition_ = getDefaultInstance().getCondition(); onChanged(); 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) { + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; onChanged(); return this; @@ -633,8 +586,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:
@@ -642,13 +593,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; @@ -657,8 +608,6 @@ public java.lang.String getFolder() { } } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -666,14 +615,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 { @@ -681,8 +631,6 @@ public com.google.protobuf.ByteString getFolderBytes() { } } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -690,22 +638,20 @@ 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) { + public Builder setFolder( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + folder_ = value; onChanged(); return this; } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -713,18 +659,15 @@ public Builder setFolder(java.lang.String value) {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearFolder() { - + folder_ = getDefaultInstance().getFolder(); onChanged(); return this; } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -732,23 +675,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) { + public Builder setFolderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folder_ = 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); } @@ -758,12 +701,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(); } @@ -772,27 +715,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; @@ -807,4 +750,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 8a88cebb116f..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 a94aed7b8760..1ac43f51ab9d 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,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -83,25 +62,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.
    * 
@@ -114,7 +86,6 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -140,7 +112,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; @@ -150,17 +123,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; @@ -183,135 +156,129 @@ 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(); @@ -325,9 +292,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 @@ -346,8 +313,7 @@ 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); + com.google.cloud.contentwarehouse.v1.RequestMetadata result = new com.google.cloud.contentwarehouse.v1.RequestMetadata(this); if (userInfoBuilder_ == null) { result.userInfo_ = userInfo_; } else { @@ -361,39 +327,38 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata 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.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; @@ -401,8 +366,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()); } @@ -432,19 +396,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); - - 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); + + 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) { @@ -457,47 +421,34 @@ public Builder mergeFrom( 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 userInfoBuilder_ != null || userInfo_ != null; } /** - * - * *
      * 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.
      * 
@@ -518,8 +469,6 @@ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -538,8 +487,6 @@ public Builder setUserInfo( return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -550,9 +497,7 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value if (userInfoBuilder_ == null) { if (userInfo_ != null) { userInfo_ = - com.google.cloud.contentwarehouse.v1.UserInfo.newBuilder(userInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.UserInfo.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } @@ -564,8 +509,6 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -584,8 +527,6 @@ public Builder clearUserInfo() { return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -593,13 +534,11 @@ public Builder clearUserInfo() { * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; */ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder() { - + onChanged(); return getUserInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -610,14 +549,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.
      * 
@@ -625,24 +561,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); } @@ -652,12 +585,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(); } @@ -666,27 +599,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; @@ -701,4 +634,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 aae0d947d4eb..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 3ce5b1560a84..d5b2d6997798 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,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -87,30 +65,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 { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -155,15 +133,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; } @@ -183,136 +161,129 @@ 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(); @@ -322,9 +293,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 @@ -343,8 +314,7 @@ 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); + com.google.cloud.contentwarehouse.v1.ResponseMetadata result = new com.google.cloud.contentwarehouse.v1.ResponseMetadata(this); result.requestId_ = requestId_; onBuilt(); return result; @@ -354,39 +324,38 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata 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.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; @@ -394,8 +363,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_; onChanged(); @@ -426,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + requestId_ = input.readStringRequireUtf8(); + + 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) { @@ -451,21 +417,19 @@ public Builder mergeFrom( 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; @@ -474,22 +438,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 { @@ -497,71 +460,64 @@ 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) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); 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) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - 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 +527,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(); } @@ -585,27 +541,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; @@ -620,4 +576,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 24c948ae956f..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 73% 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 480aa5104f61..2a52af559718 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,37 +29,39 @@ private Rule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Rule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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); } - /** Protobuf enum {@code google.cloud.contentwarehouse.v1.Rule.TriggerType} */ - public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { - /** UNKNOWN = 0; */ + /** + * Protobuf enum {@code google.cloud.contentwarehouse.v1.Rule.TriggerType} + */ + public enum TriggerType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ UNKNOWN(0), /** - * - * *
      * Trigger for create document action.
      * 
@@ -86,8 +70,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ ON_CREATE(1), /** - * - * *
      * Trigger for update document action.
      * 
@@ -98,11 +80,11 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** UNKNOWN = 0; */ + /** + * UNKNOWN = 0; + */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Trigger for create document action.
      * 
@@ -111,8 +93,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ON_CREATE_VALUE = 1; /** - * - * *
      * Trigger for update document action.
      * 
@@ -121,6 +101,7 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ON_UPDATE_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,49 +126,49 @@ 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; - default: - return null; + case 0: return UNKNOWN; + case 1: return ON_CREATE; + case 4: return ON_UPDATE; + 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; @@ -207,14 +188,11 @@ private TriggerType(int value) { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** - * - * *
    * Short description of the rule and its context.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -223,29 +201,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 { @@ -256,15 +234,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int RULE_ID_FIELD_NUMBER = 2; 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 @@ -273,30 +248,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 { @@ -307,46 +282,33 @@ public com.google.protobuf.ByteString getRuleIdBytes() { public static final int TRIGGER_TYPE_FIELD_NUMBER = 3; private int triggerType_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = - com.google.cloud.contentwarehouse.v1.Rule.TriggerType.valueOf(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.valueOf(triggerType_); + return result == null ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED : result; } public static final int CONDITION_FIELD_NUMBER = 4; private volatile java.lang.Object condition_; /** - * - * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -355,7 +317,6 @@ public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() {
    * 
* * string condition = 4; - * * @return The condition. */ @java.lang.Override @@ -364,15 +325,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.
@@ -381,15 +341,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 { @@ -400,8 +361,6 @@ public com.google.protobuf.ByteString getConditionBytes() { public static final int ACTIONS_FIELD_NUMBER = 5; private java.util.List actions_; /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -413,8 +372,6 @@ public java.util.List getActionsLis return actions_; } /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -422,13 +379,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.
    * 
@@ -440,8 +395,6 @@ public int getActionsCount() { return actions_.size(); } /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -453,8 +406,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.
    * 
@@ -462,12 +413,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; @@ -479,7 +430,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -511,13 +463,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; @@ -527,19 +481,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; } @@ -568,136 +525,130 @@ 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(); @@ -720,9 +671,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 @@ -741,8 +692,7 @@ 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); int from_bitField0_ = bitField0_; result.description_ = description_; result.ruleId_ = ruleId_; @@ -765,39 +715,38 @@ public com.google.cloud.contentwarehouse.v1.Rule 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.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; @@ -839,10 +788,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Rule other) { actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); - actionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActionsFieldBuilder() - : null; + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } @@ -874,50 +822,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - ruleId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - triggerType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - condition_ = input.readStringRequireUtf8(); - - 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(); + + break; + } // case 10 + case 18: { + ruleId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + triggerType_ = input.readEnum(); + + break; + } // case 24 + case 34: { + condition_ = input.readStringRequireUtf8(); + + 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) { @@ -927,25 +870,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; @@ -954,21 +894,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 { @@ -976,61 +915,54 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Short description of the rule and its context.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1038,21 +970,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; @@ -1061,22 +991,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 { @@ -1084,64 +1013,57 @@ 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) { + public Builder setRuleId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ruleId_ = value; 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() { - + ruleId_ = getDefaultInstance().getRuleId(); onChanged(); 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) { + public Builder setRuleIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ruleId_ = value; onChanged(); return this; @@ -1149,67 +1071,51 @@ 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. */ public Builder setTriggerTypeValue(int value) { - + triggerType_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = - com.google.cloud.contentwarehouse.v1.Rule.TriggerType.valueOf(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.valueOf(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. */ @@ -1217,24 +1123,21 @@ public Builder setTriggerType(com.google.cloud.contentwarehouse.v1.Rule.TriggerT if (value == null) { throw new NullPointerException(); } - + triggerType_ = value.getNumber(); onChanged(); 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() { - + triggerType_ = 0; onChanged(); return this; @@ -1242,8 +1145,6 @@ public Builder clearTriggerType() { private java.lang.Object condition_ = ""; /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1252,13 +1153,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; @@ -1267,8 +1168,6 @@ public java.lang.String getCondition() { } } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1277,14 +1176,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 { @@ -1292,8 +1192,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1302,22 +1200,20 @@ 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) { + public Builder setCondition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + condition_ = value; onChanged(); return this; } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1326,18 +1222,15 @@ public Builder setCondition(java.lang.String value) {
      * 
* * string condition = 4; - * * @return This builder for chaining. */ public Builder clearCondition() { - + condition_ = getDefaultInstance().getCondition(); onChanged(); return this; } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1346,40 +1239,34 @@ 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) { + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; onChanged(); return this; } private java.util.List actions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -1394,8 +1281,6 @@ public java.util.List getActionsLis } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1410,8 +1295,6 @@ public int getActionsCount() { } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1426,15 +1309,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(); @@ -1448,8 +1330,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.
      * 
@@ -1468,8 +1348,6 @@ public Builder setActions( return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1490,15 +1368,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(); @@ -1512,15 +1389,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()); @@ -1531,8 +1407,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.
      * 
@@ -1551,8 +1425,6 @@ public Builder addActions( return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1563,7 +1435,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); @@ -1571,8 +1444,6 @@ public Builder addAllActions( return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1590,8 +1461,6 @@ public Builder clearActions() { return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1609,44 +1478,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 { @@ -1654,8 +1518,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1663,55 +1525,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1721,12 +1577,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(); } @@ -1735,27 +1591,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; @@ -1770,4 +1626,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 75bde730623c..c96f6cf0fb72 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,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -85,14 +63,11 @@ public boolean hasRule() { return rule_ != null; } /** - * - * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ @java.lang.Override @@ -100,8 +75,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** - * - * *
    * Represents the rule.
    * 
@@ -116,8 +89,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { public static final int ACTION_OUTPUTS_FIELD_NUMBER = 2; private java.util.List actionOutputs_; /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -129,8 +100,6 @@ public java.util.List getActi return actionOutputs_; } /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -138,13 +107,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.
    * 
@@ -156,8 +123,6 @@ public int getActionOutputsCount() { return actionOutputs_.size(); } /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -169,8 +134,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.
    * 
@@ -184,7 +147,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -213,10 +176,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; @@ -226,19 +191,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; } @@ -264,135 +230,129 @@ 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(); @@ -413,9 +373,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 @@ -434,8 +394,7 @@ 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); int from_bitField0_ = bitField0_; if (ruleBuilder_ == null) { result.rule_ = rule_; @@ -459,39 +418,38 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair 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.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; @@ -499,8 +457,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()); } @@ -522,10 +479,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleActionsPair ot actionOutputsBuilder_ = null; actionOutputs_ = other.actionOutputs_; bitField0_ = (bitField0_ & ~0x00000001); - actionOutputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActionOutputsFieldBuilder() - : null; + actionOutputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionOutputsFieldBuilder() : null; } else { actionOutputsBuilder_.addAllMessages(other.actionOutputs_); } @@ -557,33 +513,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getRuleFieldBuilder().getBuilder(), + extensionRegistry); - 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: + 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) { @@ -593,52 +548,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 ruleBuilder_ != null || rule_ != null; } /** - * - * *
      * 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.
      * 
@@ -659,15 +600,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(); onChanged(); @@ -678,8 +618,6 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builder return this; } /** - * - * *
      * Represents the rule.
      * 
@@ -690,9 +628,7 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { if (rule_ != null) { rule_ = - com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); } else { rule_ = value; } @@ -704,8 +640,6 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * Represents the rule.
      * 
@@ -724,8 +658,6 @@ public Builder clearRule() { return this; } /** - * - * *
      * Represents the rule.
      * 
@@ -733,13 +665,11 @@ public Builder clearRule() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { - + onChanged(); return getRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Represents the rule.
      * 
@@ -750,14 +680,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.
      * 
@@ -765,51 +692,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_ & 0x00000001) != 0)) { - actionOutputs_ = - new java.util.ArrayList( - actionOutputs_); + actionOutputs_ = new java.util.ArrayList(actionOutputs_); bitField0_ |= 0x00000001; - } + } } 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 { @@ -817,8 +732,6 @@ private void ensureActionOutputsIsMutable() { } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -833,8 +746,6 @@ public int getActionOutputsCount() { } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -849,8 +760,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int in } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -872,8 +781,6 @@ public Builder setActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -892,8 +799,6 @@ public Builder setActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -914,8 +819,6 @@ public Builder addActionOutputs(com.google.cloud.contentwarehouse.v1.ActionOutpu return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -937,8 +840,6 @@ public Builder addActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -957,8 +858,6 @@ public Builder addActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -977,8 +876,6 @@ public Builder addActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -989,7 +886,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); @@ -997,8 +895,6 @@ public Builder addAllActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1016,8 +912,6 @@ public Builder clearActionOutputs() { return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1035,8 +929,6 @@ public Builder removeActionOutputs(int index) { return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1048,8 +940,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder getActionOutput return getActionOutputsFieldBuilder().getBuilder(index); } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1059,22 +949,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 { @@ -1082,8 +969,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1091,12 +976,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.
      * 
@@ -1105,35 +988,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_ & 0x00000001) != 0), getParentForChildren(), @@ -1142,9 +1016,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); } @@ -1154,12 +1028,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(); } @@ -1168,27 +1042,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; @@ -1203,4 +1077,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 84d7ea007b69..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 69% 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 f47f9afd7bd5..ff7436dc2047 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Records the output of Rule Engine including rule evaluation and actions
  * result.
@@ -28,57 +11,52 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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;
   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 @@ -87,29 +65,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 { @@ -120,14 +98,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 @@ -135,25 +110,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.
    * 
@@ -161,23 +129,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() { + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder() { return getRuleEvaluatorOutput(); } 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 @@ -185,26 +149,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.
@@ -213,13 +170,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() {
+  public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder() {
     return getActionExecutorOutput();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -231,7 +186,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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());
     }
@@ -251,11 +207,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_);
@@ -268,22 +225,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;
@@ -312,104 +271,96 @@ 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.
@@ -417,32 +368,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();
@@ -464,9 +416,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
@@ -485,8 +437,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.RuleEngineOutput result = new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(this);
       result.documentName_ = documentName_;
       if (ruleEvaluatorOutputBuilder_ == null) {
         result.ruleEvaluatorOutput_ = ruleEvaluatorOutput_;
@@ -506,39 +457,38 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput 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.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;
@@ -546,8 +496,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_;
         onChanged();
@@ -584,33 +533,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(
-                    getRuleEvaluatorOutputFieldBuilder().getBuilder(), extensionRegistry);
+            case 10: {
+              input.readMessage(
+                  getRuleEvaluatorOutputFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(
-                    getActionExecutorOutputFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getActionExecutorOutputFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 18
-            case 26:
-              {
-                documentName_ = input.readStringRequireUtf8();
+              break;
+            } // case 18
+            case 26: {
+              documentName_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -623,20 +570,18 @@ public Builder mergeFrom(
 
     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; @@ -645,21 +590,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 { @@ -667,61 +611,54 @@ 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) { + public Builder setDocumentName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentName_ = value; 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() { - + documentName_ = getDefaultInstance().getDocumentName(); onChanged(); 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) { + public Builder setDocumentNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentName_ = value; onChanged(); return this; @@ -729,55 +666,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 ruleEvaluatorOutputBuilder_ != null || ruleEvaluatorOutput_ != null; } /** - * - * *
      * 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(); @@ -791,8 +714,6 @@ public Builder setRuleEvaluatorOutput( return this; } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -811,23 +732,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 (ruleEvaluatorOutput_ != null) { ruleEvaluatorOutput_ = - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.newBuilder( - ruleEvaluatorOutput_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.newBuilder(ruleEvaluatorOutput_).mergeFrom(value).buildPartial(); } else { ruleEvaluatorOutput_ = value; } @@ -839,8 +754,6 @@ public Builder mergeRuleEvaluatorOutput( return this; } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -859,42 +772,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() { + 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.
      * 
@@ -902,17 +806,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_; @@ -920,61 +821,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 actionExecutorOutputBuilder_ != null || actionExecutorOutput_ != null; } /** - * - * *
      * 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(); @@ -988,15 +872,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) { @@ -1010,25 +891,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 (actionExecutorOutput_ != null) { actionExecutorOutput_ = - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.newBuilder( - actionExecutorOutput_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.newBuilder(actionExecutorOutput_).mergeFrom(value).buildPartial(); } else { actionExecutorOutput_ = value; } @@ -1040,15 +914,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() { if (actionExecutorOutputBuilder_ == null) { @@ -1062,73 +933,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() { + 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); } @@ -1138,12 +994,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(); } @@ -1152,27 +1008,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; @@ -1187,4 +1043,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 78d0addde472..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..c85ae8d469bc
--- /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,328 @@
+// 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}\"" +
+      "\376\001\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\"8" +
+      "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020" +
+      "\001\022\r\n\tON_UPDATE\020\004\"\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\213\001\n$com.google.cloud.conte" +
+      "ntwarehouse.v1B\017RuleEngineProtoP\001ZPgoogl" +
+      "e.golang.org/genproto/googleapis/cloud/c" +
+      "ontentwarehouse/v1;contentwarehouseb\006pro" +
+      "to3"
+    };
+    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 673f884a18f3..f7201664fde3 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,35 +27,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List triggeredRules_; /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -85,8 +64,6 @@ public java.util.List getTriggeredRul return triggeredRules_; } /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -94,13 +71,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.
    * 
@@ -112,8 +87,6 @@ public int getTriggeredRulesCount() { return triggeredRules_.size(); } /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -125,8 +98,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.
    * 
@@ -134,15 +105,14 @@ 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; private java.util.List matchedRules_; /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -154,8 +124,6 @@ public java.util.List getMatchedRules return matchedRules_; } /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -163,13 +131,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.
    * 
@@ -181,8 +147,6 @@ public int getMatchedRulesCount() { return matchedRules_.size(); } /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -194,8 +158,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.
    * 
@@ -203,15 +165,14 @@ 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; private java.util.List invalidRules_; /** - * - * *
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -224,8 +185,6 @@ public java.util.List getInval
     return invalidRules_;
   }
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -234,13 +193,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.
@@ -253,8 +210,6 @@ public int getInvalidRulesCount() {
     return invalidRules_.size();
   }
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -267,8 +222,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.
@@ -283,7 +236,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -295,7 +247,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -315,13 +268,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;
@@ -331,17 +287,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;
   }
@@ -371,136 +329,129 @@ 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(); @@ -529,9 +480,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 @@ -550,8 +501,7 @@ 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); int from_bitField0_ = bitField0_; if (triggeredRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -588,39 +538,38 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput 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.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; @@ -628,8 +577,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()) { @@ -648,10 +596,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_); } @@ -675,10 +622,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_); } @@ -702,10 +648,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_); } @@ -737,53 +682,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) { @@ -793,29 +736,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.
      * 
@@ -830,8 +765,6 @@ public java.util.List getTriggeredRul } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -846,8 +779,6 @@ public int getTriggeredRulesCount() { } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -862,15 +793,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(); @@ -884,8 +814,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.
      * 
@@ -904,8 +832,6 @@ public Builder setTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -926,15 +852,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(); @@ -948,8 +873,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.
      * 
@@ -968,8 +891,6 @@ public Builder addTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -988,8 +909,6 @@ public Builder addTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1000,7 +919,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); @@ -1008,8 +928,6 @@ public Builder addAllTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1027,8 +945,6 @@ public Builder clearTriggeredRules() { return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1046,20 +962,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.
      * 
@@ -1069,22 +982,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 { @@ -1092,8 +1002,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBui } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1101,47 +1009,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(), @@ -1152,25 +1051,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.
      * 
@@ -1185,8 +1077,6 @@ public java.util.List getMatchedRules } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1201,8 +1091,6 @@ public int getMatchedRulesCount() { } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1217,15 +1105,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(); @@ -1239,8 +1126,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.
      * 
@@ -1259,8 +1144,6 @@ public Builder setMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1281,15 +1164,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(); @@ -1303,8 +1185,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.
      * 
@@ -1323,8 +1203,6 @@ public Builder addMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1343,8 +1221,6 @@ public Builder addMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1355,7 +1231,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); @@ -1363,8 +1240,6 @@ public Builder addAllMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1382,8 +1257,6 @@ public Builder clearMatchedRules() { return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1401,44 +1274,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 { @@ -1446,8 +1314,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuild } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1455,74 +1321,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.
@@ -1538,8 +1390,6 @@ public java.util.List getInval
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1555,8 +1405,6 @@ public int getInvalidRulesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1572,8 +1420,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int inde
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1596,8 +1442,6 @@ public Builder setInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1617,8 +1461,6 @@ public Builder setInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1640,8 +1482,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.
@@ -1664,8 +1504,6 @@ public Builder addInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1685,8 +1523,6 @@ public Builder addInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1706,8 +1542,6 @@ public Builder addInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1719,7 +1553,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);
@@ -1727,8 +1562,6 @@ public Builder addAllInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1747,8 +1580,6 @@ public Builder clearInvalidRules() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1767,8 +1598,6 @@ public Builder removeInvalidRules(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1781,8 +1610,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.
@@ -1793,14 +1620,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.
@@ -1808,8 +1632,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 {
@@ -1817,8 +1641,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1827,12 +1649,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.
@@ -1842,12 +1662,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.
@@ -1855,30 +1673,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);
     }
 
@@ -1888,12 +1703,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();
   }
@@ -1902,27 +1717,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;
@@ -1937,4 +1752,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 e627035b2840..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 ade0efb33469..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 72% 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 626d631c9642..d910c233cc62 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,35 +28,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 6; - * * @return The name. */ @java.lang.Override @@ -92,15 +70,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:
@@ -109,15 +86,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 { @@ -128,14 +106,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** - * - * *
    * Short description of the rule-set.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -144,29 +119,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 { @@ -177,14 +152,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object source_; /** - * - * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; - * * @return The source. */ @java.lang.Override @@ -193,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 { @@ -226,8 +198,6 @@ public com.google.protobuf.ByteString getSourceBytes() { public static final int RULES_FIELD_NUMBER = 3; private java.util.List rules_; /** - * - * *
    * List of rules given by the customer.
    * 
@@ -239,8 +209,6 @@ public java.util.List getRulesList() return rules_; } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -248,13 +216,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.
    * 
@@ -266,8 +232,6 @@ public int getRulesCount() { return rules_.size(); } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -279,8 +243,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { return rules_.get(index); } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -288,12 +250,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; @@ -305,7 +267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -334,7 +297,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_); @@ -347,18 +311,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; } @@ -385,136 +352,130 @@ 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(); @@ -535,9 +496,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 @@ -556,8 +517,7 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -579,39 +539,38 @@ public com.google.cloud.contentwarehouse.v1.RuleSet 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.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; @@ -650,10 +609,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleSet other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRulesFieldBuilder() - : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -685,44 +643,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); + case 10: { + description_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - source_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + source_ = input.readStringRequireUtf8(); - 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(); + 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(); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -732,13 +686,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:
@@ -747,13 +698,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; @@ -762,8 +713,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -772,14 +721,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 { @@ -787,8 +737,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -797,22 +745,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -821,18 +767,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 6; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -841,16 +784,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -858,20 +801,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; @@ -880,21 +821,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 { @@ -902,61 +842,54 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Short description of the rule-set.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -964,20 +897,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; @@ -986,21 +917,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 { @@ -1008,85 +938,72 @@ 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) { + public Builder setSource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** - * - * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; - * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); 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) { + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; } private java.util.List rules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); 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> - 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.
      * 
@@ -1101,8 +1018,6 @@ public java.util.List getRulesList() } } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1117,8 +1032,6 @@ public int getRulesCount() { } } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1133,15 +1046,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(); @@ -1155,8 +1067,6 @@ public Builder setRules(int index, com.google.cloud.contentwarehouse.v1.Rule val return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1175,8 +1085,6 @@ public Builder setRules( return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1197,15 +1105,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(); @@ -1219,15 +1126,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()); @@ -1238,8 +1144,6 @@ public Builder addRules(com.google.cloud.contentwarehouse.v1.Rule.Builder builde return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1258,8 +1162,6 @@ public Builder addRules( return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1270,7 +1172,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); @@ -1278,8 +1181,6 @@ public Builder addAllRules( return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1297,8 +1198,6 @@ public Builder clearRules() { return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1316,44 +1215,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 { @@ -1361,8 +1255,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int } } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1370,54 +1262,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1427,12 +1314,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(); } @@ -1441,27 +1328,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; @@ -1476,4 +1363,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 c0929b729624..1d38741c7f7f 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -34,13 +16,10 @@ public interface RuleSetOrBuilder
    * 
* * string name = 6; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -49,74 +28,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.
    * 
@@ -125,8 +91,6 @@ public interface RuleSetOrBuilder */ com.google.cloud.contentwarehouse.v1.Rule getRules(int index); /** - * - * *
    * List of rules given by the customer.
    * 
@@ -135,24 +99,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..2a1d11048e57 --- /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,89 @@ +// 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\202\323\344\223\0028\",/v1/" + + "{parent=projects/*/locations/*}/ruleSets" + + ":\010rule_set\332A\017parent,rule_set\022\251\001\n\nGetRule" + + "Set\0223.google.cloud.contentwarehouse.v1.G" + + "etRuleSetRequest\032).google.cloud.contentw" + + "arehouse.v1.RuleSet\";\202\323\344\223\002.\022,/v1/{name=p" + + "rojects/*/locations/*/ruleSets/*}\332A\004name" + + "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" + + "twarehouse.v1.UpdateRuleSetRequest\032).goo" + + "gle.cloud.contentwarehouse.v1.RuleSet\"G\202" + + "\323\344\223\00212,/v1/{name=projects/*/locations/*/" + + "ruleSets/*}:\001*\332A\rname,rule_set\022\234\001\n\rDelet" + + "eRuleSet\0226.google.cloud.contentwarehouse" + + ".v1.DeleteRuleSetRequest\032\026.google.protob" + + "uf.Empty\";\202\323\344\223\002.*,/v1/{name=projects/*/l" + + "ocations/*/ruleSets/*}\332A\004name\022\274\001\n\014ListRu" + + "leSets\0225.google.cloud.contentwarehouse.v" + + "1.ListRuleSetsRequest\0326.google.cloud.con" + + "tentwarehouse.v1.ListRuleSetsResponse\"=\202" + + "\323\344\223\002.\022,/v1/{parent=projects/*/locations/" + + "*}/ruleSets\332A\006parent\032S\312A\037contentwarehous" + + "e.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\217\001\n$com.google" + + ".cloud.contentwarehouse.v1B\023RuleSetServi" + + "ceProtoP\001ZPgoogle.golang.org/genproto/go" + + "ogleapis/cloud/contentwarehouse/v1;conte" + + "ntwarehouseb\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..9756655d4744 --- /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,140 @@ +// 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\"\232\001\n\024CreateRuleSetRequest\022@\n\006p" + + "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" + + "ogleapis.com/Location\022@\n\010rule_set\030\002 \001(\0132" + + ").google.cloud.contentwarehouse.v1.RuleS" + + "etB\003\340A\002\"R\n\021GetRuleSetRequest\022=\n\004name\030\001 \001" + + "(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis." + + "com/RuleSet\"\227\001\n\024UpdateRuleSetRequest\022=\n\004" + + "name\030\001 \001(\tB/\340A\002\372A)\n\'contentwarehouse.goo" + + "gleapis.com/RuleSet\022@\n\010rule_set\030\002 \001(\0132)." + + "google.cloud.contentwarehouse.v1.RuleSet" + + "B\003\340A\002\"U\n\024DeleteRuleSetRequest\022=\n\004name\030\001 " + + "\001(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis" + + ".com/RuleSet\"~\n\023ListRuleSetsRequest\022@\n\006p" + + "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" + + "ogleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleSetsResp" + + "onse\022<\n\trule_sets\030\001 \003(\0132).google.cloud.c" + + "ontentwarehouse.v1.RuleSet\022\027\n\017next_page_" + + "token\030\002 \001(\tB\226\001\n$com.google.cloud.content" + + "warehouse.v1B\032RuleSetServiceRequestProto" + + "P\001ZPgoogle.golang.org/genproto/googleapi" + + "s/cloud/contentwarehouse/v1;contentwareh" + + "ouseb\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/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 b817c9c89852..0659f0edcbe0 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -46,44 +28,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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); } public static final int PARENT_FIELD_NUMBER = 1; 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 @@ -92,32 +68,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 { @@ -128,15 +102,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 @@ -144,26 +115,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.
@@ -172,22 +136,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   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 @@ -195,25 +155,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.).
    * 
@@ -228,8 +181,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu public static final int OFFSET_FIELD_NUMBER = 5; 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
@@ -242,7 +193,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
    * 
* * int32 offset = 5; - * * @return The offset. */ @java.lang.Override @@ -253,8 +203,6 @@ public int getOffset() { public static final int PAGE_SIZE_FIELD_NUMBER = 6; 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
@@ -262,7 +210,6 @@ public int getOffset() {
    * 
* * int32 page_size = 6; - * * @return The pageSize. */ @java.lang.Override @@ -273,8 +220,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object pageToken_; /** - * - * *
    * The token specifying the current offset within search results.
    * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -282,7 +227,6 @@ public int getPageSize() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -291,15 +235,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 [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -307,15 +250,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 { @@ -326,8 +270,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 8; 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
@@ -342,7 +284,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string order_by = 8; - * * @return The orderBy. */ @java.lang.Override @@ -351,15 +292,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
@@ -374,15 +314,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 { @@ -393,8 +334,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 9; private java.util.List histogramQueries_; /** - * - * *
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -405,7 +344,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -424,13 +363,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
@@ -441,7 +377,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -460,13 +396,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
@@ -477,7 +411,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -500,8 +434,6 @@ public int getHistogramQueriesCount() {
     return histogramQueries_.size();
   }
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -512,7 +444,7 @@ public int getHistogramQueriesCount() {
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -535,8 +467,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
@@ -547,7 +477,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(i
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -574,8 +504,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
   public static final int REQUIRE_TOTAL_SIZE_FIELD_NUMBER = 10;
   private boolean requireTotalSize_;
   /**
-   *
-   *
    * 
    * Optional. 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].
@@ -586,7 +514,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
    * 
* * bool require_total_size = 10; - * * @return The requireTotalSize. */ @java.lang.Override @@ -597,8 +524,6 @@ public boolean getRequireTotalSize() { public static final int QA_SIZE_LIMIT_FIELD_NUMBER = 11; private int qaSizeLimit_; /** - * - * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -607,7 +532,6 @@ public boolean getRequireTotalSize() {
    * 
* * int32 qa_size_limit = 11; - * * @return The qaSizeLimit. */ @java.lang.Override @@ -616,7 +540,6 @@ public int getQaSizeLimit() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -628,7 +551,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -672,16 +596,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_); @@ -690,13 +618,16 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -706,30 +637,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.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 (getQaSizeLimit() != other.getQaSizeLimit()) 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 (getQaSizeLimit() + != other.getQaSizeLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -764,7 +704,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) + QA_SIZE_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getQaSizeLimit(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -773,136 +714,129 @@ 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(); @@ -943,9 +877,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 @@ -964,8 +898,7 @@ 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (requestMetadataBuilder_ == null) { @@ -1001,39 +934,38 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest 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.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; @@ -1041,8 +973,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_; onChanged(); @@ -1085,10 +1016,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsReq histogramQueriesBuilder_ = null; histogramQueries_ = other.histogramQueries_; bitField0_ = (bitField0_ & ~0x00000001); - histogramQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramQueriesFieldBuilder() - : null; + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHistogramQueriesFieldBuilder() : null; } else { histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); } @@ -1126,81 +1056,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getDocumentQueryFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 40: - { - offset_ = input.readInt32(); - - break; - } // case 40 - case 48: - { - pageSize_ = input.readInt32(); - - break; - } // case 48 - case 58: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - orderBy_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 80 - case 88: - { - qaSizeLimit_ = input.readInt32(); - - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentQueryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 40: { + offset_ = input.readInt32(); + + break; + } // case 40 + case 48: { + pageSize_ = input.readInt32(); + + break; + } // case 48 + case 58: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + orderBy_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 80 + case 88: { + qaSizeLimit_ = input.readInt32(); + + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1210,28 +1133,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; @@ -1240,24 +1158,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 { @@ -1265,70 +1180,57 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1336,49 +1238,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1400,8 +1289,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.
@@ -1421,8 +1308,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.
@@ -1430,14 +1315,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1449,8 +1331,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.
@@ -1470,8 +1350,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.
@@ -1479,15 +1357,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() {
+      
       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.
@@ -1495,19 +1370,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.
@@ -1516,17 +1387,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_;
@@ -1534,47 +1402,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 documentQueryBuilder_ != null || documentQuery_ != null; } /** - * - * *
      * 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.).
      * 
@@ -1595,8 +1450,6 @@ public Builder setDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQue return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1615,8 +1468,6 @@ public Builder setDocumentQuery( return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1627,9 +1478,7 @@ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQ if (documentQueryBuilder_ == null) { if (documentQuery_ != null) { documentQuery_ = - com.google.cloud.contentwarehouse.v1.DocumentQuery.newBuilder(documentQuery_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentQuery.newBuilder(documentQuery_).mergeFrom(value).buildPartial(); } else { documentQuery_ = value; } @@ -1641,8 +1490,6 @@ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQ return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1661,8 +1508,6 @@ public Builder clearDocumentQuery() { return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1670,13 +1515,11 @@ public Builder clearDocumentQuery() { * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; */ public com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder getDocumentQueryBuilder() { - + onChanged(); return getDocumentQueryFieldBuilder().getBuilder(); } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1687,14 +1530,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.).
      * 
@@ -1702,26 +1542,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
@@ -1734,7 +1569,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
      * 
* * int32 offset = 5; - * * @return The offset. */ @java.lang.Override @@ -1742,8 +1576,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
@@ -1756,19 +1588,16 @@ public int getOffset() {
      * 
* * int32 offset = 5; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { - + offset_ = value; onChanged(); 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
@@ -1781,20 +1610,17 @@ public Builder setOffset(int value) {
      * 
* * int32 offset = 5; - * * @return This builder for chaining. */ public Builder clearOffset() { - + offset_ = 0; onChanged(); 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
@@ -1802,7 +1628,6 @@ public Builder clearOffset() {
      * 
* * int32 page_size = 6; - * * @return The pageSize. */ @java.lang.Override @@ -1810,8 +1635,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
@@ -1819,19 +1642,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 6; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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
@@ -1839,11 +1659,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 6; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1851,8 +1670,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1860,13 +1677,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; @@ -1875,8 +1692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1884,14 +1699,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 { @@ -1899,8 +1715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1908,22 +1722,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1931,18 +1743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1950,16 +1759,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1967,8 +1776,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
@@ -1983,13 +1790,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; @@ -1998,8 +1805,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
@@ -2014,14 +1819,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 { @@ -2029,8 +1835,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
@@ -2045,22 +1849,20 @@ 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) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2075,18 +1877,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 8; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2101,42 +1900,34 @@ 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) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } private java.util.List histogramQueries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHistogramQueriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - histogramQueries_ = - new java.util.ArrayList( - histogramQueries_); + histogramQueries_ = new java.util.ArrayList(histogramQueries_); bitField0_ |= 0x00000001; - } + } } 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
@@ -2147,7 +1938,7 @@ private void ensureHistogramQueriesIsMutable() {
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2165,8 +1956,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 {
@@ -2174,8 +1964,6 @@ private void ensureHistogramQueriesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2186,7 +1974,7 @@ private void ensureHistogramQueriesIsMutable() {
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2212,8 +2000,6 @@ public int getHistogramQueriesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2224,7 +2010,7 @@ public int getHistogramQueriesCount() {
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2250,8 +2036,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
@@ -2262,7 +2046,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(i
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2295,8 +2079,6 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2307,7 +2089,7 @@ public Builder setHistogramQueries(
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2337,8 +2119,6 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2349,7 +2129,7 @@ public Builder setHistogramQueries(
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2381,8 +2161,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
@@ -2393,7 +2171,7 @@ public Builder addHistogramQueries(com.google.cloud.contentwarehouse.v1.Histogra
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2426,8 +2204,6 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2438,7 +2214,7 @@ public Builder addHistogramQueries(
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2468,8 +2244,6 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2480,7 +2254,7 @@ public Builder addHistogramQueries(
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2510,8 +2284,6 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2522,7 +2294,7 @@ public Builder addHistogramQueries(
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2544,7 +2316,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);
@@ -2552,8 +2325,6 @@ public Builder addAllHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2564,7 +2335,7 @@ public Builder addAllHistogramQueries(
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2593,8 +2364,6 @@ public Builder clearHistogramQueries() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2605,7 +2374,7 @@ public Builder clearHistogramQueries() {
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2634,8 +2403,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
@@ -2646,7 +2413,7 @@ public Builder removeHistogramQueries(int index) {
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2669,8 +2436,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
@@ -2681,7 +2446,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2699,17 +2464,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
@@ -2720,7 +2482,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2738,8 +2500,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 {
@@ -2747,8 +2509,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
@@ -2759,7 +2519,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2777,14 +2537,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
@@ -2795,7 +2552,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2815,13 +2572,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
@@ -2832,7 +2586,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      * Data types:
      * * Histogram facet (aka filterable properties): Facet names with format
      * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-     * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+     * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
      * facet, then the parent hierarchy needs to be specified separated by
      * dots in the prefix after the schema id. Thus, the format for a multi-
      * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -2850,22 +2604,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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2875,10 +2623,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
       return histogramQueriesBuilder_;
     }
 
-    private boolean requireTotalSize_;
+    private boolean requireTotalSize_ ;
     /**
-     *
-     *
      * 
      * Optional. 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].
@@ -2889,7 +2635,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      * 
* * bool require_total_size = 10; - * * @return The requireTotalSize. */ @java.lang.Override @@ -2897,8 +2642,6 @@ public boolean getRequireTotalSize() { return requireTotalSize_; } /** - * - * *
      * Optional. 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].
@@ -2909,19 +2652,16 @@ public boolean getRequireTotalSize() {
      * 
* * bool require_total_size = 10; - * * @param value The requireTotalSize to set. * @return This builder for chaining. */ public Builder setRequireTotalSize(boolean value) { - + requireTotalSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. 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].
@@ -2932,20 +2672,17 @@ public Builder setRequireTotalSize(boolean value) {
      * 
* * bool require_total_size = 10; - * * @return This builder for chaining. */ public Builder clearRequireTotalSize() { - + requireTotalSize_ = false; onChanged(); return this; } - private int qaSizeLimit_; + private int qaSizeLimit_ ; /** - * - * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -2954,7 +2691,6 @@ public Builder clearRequireTotalSize() {
      * 
* * int32 qa_size_limit = 11; - * * @return The qaSizeLimit. */ @java.lang.Override @@ -2962,8 +2698,6 @@ public int getQaSizeLimit() { return qaSizeLimit_; } /** - * - * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -2972,19 +2706,16 @@ public int getQaSizeLimit() {
      * 
* * int32 qa_size_limit = 11; - * * @param value The qaSizeLimit to set. * @return This builder for chaining. */ public Builder setQaSizeLimit(int value) { - + qaSizeLimit_ = value; onChanged(); return this; } /** - * - * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -2993,18 +2724,17 @@ public Builder setQaSizeLimit(int value) {
      * 
* * int32 qa_size_limit = 11; - * * @return This builder for chaining. */ public Builder clearQaSizeLimit() { - + qaSizeLimit_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3014,12 +2744,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(); } @@ -3028,27 +2758,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; @@ -3063,4 +2793,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 89% 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 3622b71a336c..0fa71fb6d992 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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
@@ -142,14 +99,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
@@ -157,14 +111,11 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * int32 page_size = 6; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The token specifying the current offset within search results.
    * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -172,13 +123,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 [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -186,14 +134,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
@@ -208,13 +154,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
@@ -229,14 +172,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
@@ -247,7 +188,7 @@ public interface SearchDocumentsRequestOrBuilder
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -265,10 +206,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
@@ -279,7 +219,7 @@ public interface SearchDocumentsRequestOrBuilder
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -299,8 +239,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
@@ -311,7 +249,7 @@ public interface SearchDocumentsRequestOrBuilder
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -331,8 +269,6 @@ public interface SearchDocumentsRequestOrBuilder
    */
   int getHistogramQueriesCount();
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -343,7 +279,7 @@ public interface SearchDocumentsRequestOrBuilder
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -361,11 +297,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
@@ -376,7 +310,7 @@ public interface SearchDocumentsRequestOrBuilder
    * Data types:
    * * Histogram facet (aka filterable properties): Facet names with format
    * &lt;schema id&gt;.&lt;facet&gt;. Facets will have the
-   * format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child
+   * format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child
    * facet, then the parent hierarchy needs to be specified separated by
    * dots in the prefix after the schema id. Thus, the format for a multi-
    * level facet is: &lt;schema id&gt;.&lt;parent facet name&gt;.
@@ -398,8 +332,6 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
       int index);
 
   /**
-   *
-   *
    * 
    * Optional. 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].
@@ -410,14 +342,11 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
    * 
* * bool require_total_size = 10; - * * @return The requireTotalSize. */ boolean getRequireTotalSize(); /** - * - * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -426,7 +355,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 f07192c595fb..53f8c64d1662 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -45,64 +27,54 @@ private SearchDocumentsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchDocumentsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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].
      * This document only contains indexed metadata information.
      * 
* * .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].
      * This document only contains indexed metadata information.
      * 
* * .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].
      * This document only contains indexed metadata information.
@@ -113,8 +85,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
@@ -127,13 +97,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
@@ -146,40 +113,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.
@@ -190,67 +149,59 @@ public interface MatchingDocumentOrBuilder
     com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Document entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
    * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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].
      * This document only contains indexed metadata information.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ @java.lang.Override @@ -258,26 +209,19 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
      * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * This document only contains indexed metadata information.
      * 
* * .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].
      * This document only contains indexed metadata information.
@@ -293,8 +237,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
     public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 2;
     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
@@ -307,7 +249,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * string search_text_snippet = 2; - * * @return The searchTextSnippet. */ @java.lang.Override @@ -316,15 +257,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
@@ -337,15 +277,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 { @@ -356,15 +297,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 @@ -372,26 +310,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.
@@ -405,7 +336,6 @@ public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuild
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -417,7 +347,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public 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());
       }
@@ -437,13 +368,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;
@@ -453,24 +386,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;
@@ -498,101 +431,88 @@ 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
@@ -602,44 +522,39 @@ 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(); @@ -661,22 +576,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); } @@ -684,10 +596,8 @@ 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); + 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 (documentBuilder_ == null) { result.document_ = document_; } else { @@ -707,56 +617,46 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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()); } @@ -793,31 +693,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - searchTextSnippet_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getQaResultFieldBuilder().getBuilder(), extensionRegistry); - - 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); + + break; + } // case 10 + case 18: { + searchTextSnippet_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getQaResultFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -830,49 +730,36 @@ public Builder mergeFrom( 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].
        * This document only contains indexed metadata information.
        * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ public boolean hasDocument() { return documentBuilder_ != null || document_ != null; } /** - * - * *
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
        * 
* * .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].
        * This document only contains indexed metadata information.
@@ -894,8 +781,6 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -915,8 +800,6 @@ public Builder setDocument(
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -928,9 +811,7 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value
         if (documentBuilder_ == null) {
           if (document_ != null) {
             document_ =
-                com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial();
           } else {
             document_ = value;
           }
@@ -942,8 +823,6 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -963,8 +842,6 @@ public Builder clearDocument() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -973,13 +850,11 @@ public Builder clearDocument() {
        * .google.cloud.contentwarehouse.v1.Document document = 1;
        */
       public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() {
-
+        
         onChanged();
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -991,14 +866,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].
        * This document only contains indexed metadata information.
@@ -1007,17 +879,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_;
@@ -1025,8 +894,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
@@ -1039,13 +906,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; @@ -1054,8 +921,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
@@ -1068,14 +933,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 { @@ -1083,8 +949,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
@@ -1097,22 +961,20 @@ 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) { + public Builder setSearchTextSnippet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + searchTextSnippet_ = value; 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
@@ -1125,18 +987,15 @@ public Builder setSearchTextSnippet(java.lang.String value) {
        * 
* * string search_text_snippet = 2; - * * @return This builder for chaining. */ public Builder clearSearchTextSnippet() { - + searchTextSnippet_ = getDefaultInstance().getSearchTextSnippet(); 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
@@ -1149,16 +1008,16 @@ 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) { + public Builder setSearchTextSnippetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchTextSnippet_ = value; onChanged(); return this; @@ -1166,49 +1025,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 qaResultBuilder_ != null || qaResult_ != null; } /** - * - * *
        * 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.
@@ -1230,8 +1076,6 @@ public Builder setQaResult(com.google.cloud.contentwarehouse.v1.QAResult value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1251,8 +1095,6 @@ public Builder setQaResult(
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1264,9 +1106,7 @@ public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value
         if (qaResultBuilder_ == null) {
           if (qaResult_ != null) {
             qaResult_ =
-                com.google.cloud.contentwarehouse.v1.QAResult.newBuilder(qaResult_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.contentwarehouse.v1.QAResult.newBuilder(qaResult_).mergeFrom(value).buildPartial();
           } else {
             qaResult_ = value;
           }
@@ -1278,8 +1118,6 @@ public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1299,8 +1137,6 @@ public Builder clearQaResult() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1309,13 +1145,11 @@ public Builder clearQaResult() {
        * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
        */
       public com.google.cloud.contentwarehouse.v1.QAResult.Builder getQaResultBuilder() {
-
+        
         onChanged();
         return getQaResultFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1327,14 +1161,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.
@@ -1343,22 +1174,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) {
@@ -1371,46 +1198,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;
@@ -1422,112 +1244,81 @@ 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;
-  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; 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 @@ -1536,30 +1327,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 { @@ -1570,8 +1361,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of matched documents which is available only if the client
    * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -1582,7 +1371,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1593,15 +1381,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 @@ -1609,26 +1394,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.
@@ -1642,96 +1420,71 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 6;
-  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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1743,7 +1496,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -1769,22 +1523,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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1794,22 +1549,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!getHistogramQueryResultsList() + .equals(other.getHistogramQueryResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1843,136 +1602,129 @@ 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(); @@ -2004,14 +1756,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(); } @@ -2026,8 +1777,7 @@ 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); int from_bitField0_ = bitField0_; if (matchingDocumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2062,39 +1812,38 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse 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.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; @@ -2102,9 +1851,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()) { @@ -2123,10 +1870,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_); } @@ -2160,10 +1906,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes histogramQueryResultsBuilder_ = null; histogramQueryResults_ = other.histogramQueryResults_; bitField0_ = (bitField0_ & ~0x00000002); - histogramQueryResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramQueryResultsFieldBuilder() - : null; + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHistogramQueryResultsFieldBuilder() : null; } else { histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); } @@ -2195,60 +1940,55 @@ 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(); + 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(); - break; - } // case 18 - case 24: - { - totalSize_ = input.readInt32(); + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); - break; - } // case 24 - case 34: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 24 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); - 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 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2258,43 +1998,28 @@ 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 { @@ -2302,15 +2027,11 @@ 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) { @@ -2320,18 +2041,13 @@ 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 { @@ -2339,19 +2055,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 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(); @@ -2365,20 +2076,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 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()); @@ -2389,18 +2094,13 @@ 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(); @@ -2414,19 +2114,14 @@ 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(); @@ -2440,19 +2135,14 @@ 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()); @@ -2463,20 +2153,14 @@ 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()); @@ -2487,24 +2171,18 @@ 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); @@ -2512,15 +2190,11 @@ 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) { @@ -2533,15 +2207,11 @@ 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) { @@ -2554,55 +2224,39 @@ 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 { @@ -2610,72 +2264,45 @@ 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(), @@ -2687,21 +2314,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; @@ -2710,22 +2335,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 { @@ -2733,73 +2357,64 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of matched documents which is available only if the client
      * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -2810,7 +2425,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -2818,8 +2432,6 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of matched documents which is available only if the client
      * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -2830,19 +2442,16 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of matched documents which is available only if the client
      * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -2853,11 +2462,10 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; @@ -2865,49 +2473,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 metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * 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.
@@ -2929,8 +2524,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2950,8 +2543,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2963,9 +2554,7 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -2977,8 +2566,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2998,8 +2585,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3008,13 +2593,11 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3026,14 +2609,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.
@@ -3042,54 +2622,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_ & 0x00000002) != 0)) {
-        histogramQueryResults_ =
-            new java.util.ArrayList(
-                histogramQueryResults_);
+        histogramQueryResults_ = new java.util.ArrayList(histogramQueryResults_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     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 { @@ -3097,16 +2663,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) { @@ -3116,19 +2678,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 { @@ -3136,16 +2693,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) { @@ -3162,20 +2715,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()); @@ -3186,19 +2734,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(); @@ -3212,16 +2755,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) { @@ -3238,16 +2777,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) { @@ -3261,20 +2796,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()); @@ -3285,23 +2815,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); @@ -3309,16 +2835,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) { @@ -3331,16 +2853,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) { @@ -3353,56 +2871,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 { @@ -3410,70 +2914,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_ & 0x00000002) != 0), getParentForChildren(), @@ -3482,9 +2964,9 @@ public Builder removeHistogramQueryResults(int index) { } return histogramQueryResultsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3494,13 +2976,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(); } @@ -3509,27 +2990,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; @@ -3544,4 +3025,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 66% 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 f884d7579ab9..61f63a4a0177 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,126 +1,79 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -131,40 +84,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.
@@ -175,71 +119,51 @@ 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); } 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 74% 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 bc344f19babc..0c16a845ff01 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object resource_; /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -80,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -89,15 +67,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:
@@ -106,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 { @@ -125,15 +103,12 @@ 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.
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -141,15 +116,12 @@ 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.
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -157,8 +129,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.
@@ -174,15 +144,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 @@ -190,26 +157,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.
@@ -218,23 +178,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 4;
   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 @@ -243,7 +199,6 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,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(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -281,13 +237,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; @@ -297,24 +256,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; } @@ -337,142 +299,137 @@ 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(); @@ -496,9 +453,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 @@ -517,8 +474,7 @@ 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); + com.google.cloud.contentwarehouse.v1.SetAclRequest result = new com.google.cloud.contentwarehouse.v1.SetAclRequest(this); result.resource_ = resource_; if (policyBuilder_ == null) { result.policy_ = policy_; @@ -539,39 +495,38 @@ public com.google.cloud.contentwarehouse.v1.SetAclRequest 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.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; @@ -579,8 +534,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_; onChanged(); @@ -620,37 +574,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); + case 10: { + resource_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - case 32: - { - projectOwner_ = input.readBool(); + break; + } // case 26 + case 32: { + projectOwner_ = input.readBool(); - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -663,8 +616,6 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -673,13 +624,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; @@ -688,8 +639,6 @@ public java.lang.String getResource() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -698,14 +647,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 { @@ -713,8 +663,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -723,22 +671,20 @@ 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) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -747,18 +693,15 @@ public Builder setResource(java.lang.String value) {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -767,16 +710,16 @@ 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) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -784,35 +727,26 @@ 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.
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || 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.
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -823,8 +757,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.
@@ -846,8 +778,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.
@@ -855,7 +785,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();
         onChanged();
@@ -866,8 +797,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.
@@ -878,7 +807,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
         if (policy_ != null) {
-          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+          policy_ =
+            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
         } else {
           policy_ = value;
         }
@@ -890,8 +820,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.
@@ -911,8 +839,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.
@@ -921,13 +847,11 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+      
       onChanged();
       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.
@@ -939,12 +863,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.
@@ -953,16 +876,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_;
@@ -970,49 +891,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1034,8 +942,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.
@@ -1055,8 +961,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1064,14 +968,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1083,8 +984,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1104,8 +1003,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1113,15 +1010,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1129,19 +1023,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.
@@ -1150,33 +1040,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 @@ -1184,45 +1068,39 @@ 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. */ public Builder setProjectOwner(boolean value) { - + projectOwner_ = value; onChanged(); 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() { - + projectOwner_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1232,12 +1110,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(); } @@ -1246,27 +1124,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; @@ -1281,4 +1159,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 80% 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 cad2f0e111a4..1d75890aa00a 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -34,13 +16,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:
@@ -49,40 +28,32 @@ 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.
    * 
* * .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.
    * 
* * .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.
@@ -93,34 +64,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.
@@ -131,15 +94,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 71% 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 19462f2a5220..9026114e0a5b 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,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -83,14 +62,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 @@ -98,8 +74,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).
    * 
@@ -114,15 +88,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 @@ -130,26 +101,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.
@@ -163,7 +127,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -175,7 +138,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -192,10 +156,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;
@@ -205,21 +171,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;
@@ -246,135 +213,129 @@ 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(); @@ -394,9 +355,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 @@ -415,8 +376,7 @@ 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); + com.google.cloud.contentwarehouse.v1.SetAclResponse result = new com.google.cloud.contentwarehouse.v1.SetAclResponse(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -435,39 +395,38 @@ public com.google.cloud.contentwarehouse.v1.SetAclResponse 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.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; @@ -475,8 +434,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()); } @@ -509,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - - 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); + + break; + } // case 10 + case 18: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -540,33 +499,24 @@ public Builder mergeFrom( 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 policyBuilder_ != null || policy_ != null; } /** - * - * *
      * 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() { @@ -577,8 +527,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -599,15 +547,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(); onChanged(); @@ -618,8 +565,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,7 +574,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { - policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + policy_ = + com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -641,8 +587,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -661,8 +605,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -670,13 +612,11 @@ public Builder clearPolicy() { * .google.iam.v1.Policy policy = 1; */ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -687,12 +627,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).
      * 
@@ -700,16 +639,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_; @@ -717,49 +654,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 metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * 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.
@@ -781,8 +705,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -802,8 +724,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -815,9 +735,7 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -829,8 +747,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -850,8 +766,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -860,13 +774,11 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -878,14 +790,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.
@@ -894,24 +803,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);
     }
 
@@ -921,12 +827,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();
   }
@@ -935,27 +841,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;
@@ -970,4 +876,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 006a21ae5bc6..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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 3ba978595ac8..ded3a7b624ba 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,89 +32,75 @@ private SynonymSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SynonymSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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.
@@ -140,85 +108,75 @@ 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.EMPTY;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Synonym();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    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;
     private com.google.protobuf.LazyStringList words_;
     /**
-     *
-     *
      * 
      * 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. */ @@ -226,23 +184,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; @@ -254,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 { for (int i = 0; i < words_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, words_.getRaw(i)); } @@ -283,15 +239,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; } @@ -313,94 +269,87 @@ 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 @@ -410,8 +359,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents a list of words given by the customer
      * All these words are synonyms of each other.
@@ -419,33 +366,33 @@ 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();
@@ -455,9 +402,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_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
@@ -476,8 +423,7 @@ 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);
+        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym result = new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           words_ = words_.getUnmodifiableView();
@@ -492,41 +438,38 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.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;
@@ -534,8 +477,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_;
@@ -572,20 +514,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) {
@@ -595,55 +535,44 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList words_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList words_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureWordsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           words_ = new com.google.protobuf.LazyStringArrayList(words_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
       /**
-       *
-       *
        * 
        * 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_.getUnmodifiableView(); } /** - * - * *
        * 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. */ @@ -651,90 +580,80 @@ 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) { + public Builder setWords( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWordsIsMutable(); + throw new NullPointerException(); + } + ensureWordsIsMutable(); words_.set(index, value); onChanged(); 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) { + public Builder addWords( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWordsIsMutable(); + throw new NullPointerException(); + } + ensureWordsIsMutable(); words_.add(value); onChanged(); 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_); onChanged(); return this; } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @return This builder for chaining. */ public Builder clearWords() { @@ -744,28 +663,25 @@ public Builder clearWords() { 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) { + public Builder addWordsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWordsIsMutable(); words_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -778,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(); } @@ -792,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; @@ -828,13 +743,12 @@ 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; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -843,7 +757,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefaultInstanc
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -852,15 +765,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.
@@ -869,15 +781,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 { @@ -888,8 +801,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONTEXT_FIELD_NUMBER = 2; private volatile java.lang.Object context_; /** - * - * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -897,7 +808,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string context = 2; - * * @return The context. */ @java.lang.Override @@ -906,15 +816,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.
@@ -922,15 +831,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 { @@ -941,8 +851,6 @@ public com.google.protobuf.ByteString getContextBytes() { public static final int SYNONYMS_FIELD_NUMBER = 3; private java.util.List synonyms_; /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -954,8 +862,6 @@ public java.util.List g return synonyms_; } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -963,13 +869,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.
    * 
@@ -981,8 +885,6 @@ public int getSynonymsCount() { return synonyms_.size(); } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -994,8 +896,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i return synonyms_.get(index); } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -1009,7 +909,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1021,7 +920,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1047,7 +947,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; @@ -1057,17 +958,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; } @@ -1092,104 +995,97 @@ 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:
@@ -1201,32 +1097,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();
@@ -1245,9 +1142,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
@@ -1266,8 +1163,7 @@ 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);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.context_ = context_;
@@ -1288,39 +1184,38 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet 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.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;
@@ -1328,8 +1223,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_;
         onChanged();
@@ -1356,10 +1250,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet other)
             synonymsBuilder_ = null;
             synonyms_ = other.synonyms_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            synonymsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSynonymsFieldBuilder()
-                    : null;
+            synonymsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSynonymsFieldBuilder() : null;
           } else {
             synonymsBuilder_.addAllMessages(other.synonyms_);
           }
@@ -1391,39 +1284,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                context_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              context_ = input.readStringRequireUtf8();
 
-                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:
+              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) {
@@ -1433,13 +1322,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.
@@ -1448,13 +1334,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; @@ -1463,8 +1349,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1473,14 +1357,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 { @@ -1488,8 +1373,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1498,22 +1381,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1522,18 +1403,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1542,16 +1420,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1559,8 +1437,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.
@@ -1568,13 +1444,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; @@ -1583,8 +1459,6 @@ public java.lang.String getContext() { } } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1592,14 +1466,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 { @@ -1607,8 +1482,6 @@ public com.google.protobuf.ByteString getContextBytes() { } } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1616,22 +1489,20 @@ 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) { + public Builder setContext( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + context_ = value; onChanged(); return this; } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1639,18 +1510,15 @@ public Builder setContext(java.lang.String value) {
      * 
* * string context = 2; - * * @return This builder for chaining. */ public Builder clearContext() { - + context_ = getDefaultInstance().getContext(); onChanged(); return this; } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1658,50 +1526,41 @@ 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) { + public Builder setContextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + context_ = value; onChanged(); return this; } private java.util.List synonyms_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - synonyms_ = - new java.util.ArrayList( - synonyms_); + synonyms_ = new java.util.ArrayList(synonyms_); bitField0_ |= 0x00000001; - } + } } 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 { @@ -1709,8 +1568,6 @@ private void ensureSynonymsIsMutable() { } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1725,8 +1582,6 @@ public int getSynonymsCount() { } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1741,8 +1596,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1764,8 +1617,6 @@ public Builder setSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1773,8 +1624,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()); @@ -1785,8 +1635,6 @@ public Builder setSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1807,8 +1655,6 @@ public Builder addSynonyms(com.google.cloud.contentwarehouse.v1.SynonymSet.Synon return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1830,8 +1676,6 @@ public Builder addSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1850,8 +1694,6 @@ public Builder addSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1859,8 +1701,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()); @@ -1871,8 +1712,6 @@ public Builder addSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1880,11 +1719,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); @@ -1892,8 +1731,6 @@ public Builder addAllSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1911,8 +1748,6 @@ public Builder clearSynonyms() { return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1930,8 +1765,6 @@ public Builder removeSynonyms(int index) { return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1943,8 +1776,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder getSynony return getSynonymsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1954,23 +1785,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 { @@ -1978,8 +1805,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1987,12 +1812,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.
      * 
@@ -2001,43 +1824,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -2047,12 +1864,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(); } @@ -2061,27 +1878,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; @@ -2096,4 +1913,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 031e4e3891c6..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..6b2cef44efc9 --- /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,76 @@ +// 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\213\001\n$com.google.cloud.contentwar" + + "ehouse.v1B\017SynonymSetProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/conten" + + "twarehouse/v1;contentwarehouseb\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..25e1cad00036 --- /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,91 @@ +// 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\202\323\344\223\002>\"//v1/{parent=projects/*/loca" + + "tions/*}/synonymSets:\013synonym_set\332A\022pare" + + "nt,synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" + + "e.cloud.contentwarehouse.v1.GetSynonymSe" + + "tRequest\032,.google.cloud.contentwarehouse" + + ".v1.SynonymSet\">\202\323\344\223\0021\022//v1/{name=projec" + + "ts/*/locations/*/synonymSets/*}\332A\004name\022\324" + + "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" + + "ntwarehouse.v1.UpdateSynonymSetRequest\032," + + ".google.cloud.contentwarehouse.v1.Synony" + + "mSet\"W\202\323\344\223\002>2//v1/{name=projects/*/locat" + + "ions/*/synonymSets/*}:\013synonym_set\332A\020nam" + + "e,synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" + + "gle.cloud.contentwarehouse.v1.DeleteSyno" + + "nymSetRequest\032\026.google.protobuf.Empty\">\202" + + "\323\344\223\0021*//v1/{name=projects/*/locations/*/" + + "synonymSets/*}\332A\004name\022\310\001\n\017ListSynonymSet" + + "s\0228.google.cloud.contentwarehouse.v1.Lis" + + "tSynonymSetsRequest\0329.google.cloud.conte" + + "ntwarehouse.v1.ListSynonymSetsResponse\"@" + + "\202\323\344\223\0021\022//v1/{parent=projects/*/locations" + + "/*}/synonymSets\332A\006parent\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\222\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\026SynonymS" + + "etServiceProtoP\001ZPgoogle.golang.org/genp" + + "roto/googleapis/cloud/contentwarehouse/v" + + "1;contentwarehouseb\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..c89b31defcc3 --- /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,141 @@ +// 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\"\243\001\n\027CreateSynonymSetRequest" + + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehou" + + "se.googleapis.com/Location\022F\n\013synonym_se" + + "t\030\002 \001(\0132,.google.cloud.contentwarehouse." + + "v1.SynonymSetB\003\340A\002\"X\n\024GetSynonymSetReque" + + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*contentwarehou" + + "se.googleapis.com/SynonymSet\"\201\001\n\026ListSyn" + + "onymSetsRequest\022@\n\006parent\030\001 \001(\tB0\340A\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" + + "\"v\n\027ListSynonymSetsResponse\022B\n\014synonym_s" + + "ets\030\001 \003(\0132,.google.cloud.contentwarehous" + + "e.v1.SynonymSet\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\243\001\n\027UpdateSynonymSetRequest\022@\n\004name\030\001 \001" + + "(\tB2\340A\002\372A,\n*contentwarehouse.googleapis." + + "com/SynonymSet\022F\n\013synonym_set\030\002 \001(\0132,.go" + + "ogle.cloud.contentwarehouse.v1.SynonymSe" + + "tB\003\340A\002\"[\n\027DeleteSynonymSetRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\340A\002\372A,\n*contentwarehouse.google" + + "apis.com/SynonymSetB\231\001\n$com.google.cloud" + + ".contentwarehouse.v1B\035SynonymSetServiceR" + + "equestProtoP\001ZPgoogle.golang.org/genprot" + + "o/googleapis/cloud/contentwarehouse/v1;c" + + "ontentwarehouseb\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 8d33460da16b..694e05a39674 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,111 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextArray(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private com.google.protobuf.LazyStringList values_; /** - * - * *
    * 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. */ @@ -113,23 +86,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; @@ -141,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -170,15 +141,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; } @@ -199,136 +170,130 @@ 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(); @@ -338,9 +303,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_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 @@ -359,8 +324,7 @@ 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); + com.google.cloud.contentwarehouse.v1.TextArray result = new com.google.cloud.contentwarehouse.v1.TextArray(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -375,39 +339,38 @@ public com.google.cloud.contentwarehouse.v1.TextArray 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.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; @@ -452,20 +415,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) { @@ -475,55 +436,44 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); 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() { return values_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -531,90 +481,80 @@ 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) { + public Builder setValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); 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) { + public Builder addValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); 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_); onChanged(); return this; } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -624,30 +564,28 @@ public Builder clearValues() { 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) { + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +595,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(); } @@ -671,27 +609,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; @@ -706,4 +644,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 fff476994f29..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 63% 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 ce2a0b914568..a7738349b8c5 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,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,135 +102,129 @@ 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(); @@ -257,9 +232,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 @@ -278,8 +253,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; } @@ -288,39 +262,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; @@ -328,8 +301,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; @@ -356,13 +328,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) { @@ -372,9 +343,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); } @@ -384,12 +355,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(); } @@ -398,27 +369,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; @@ -433,4 +404,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 66% 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 034b47d25e05..93053624c51f 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,85 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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.
      * 
@@ -88,8 +66,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ TIME_FIELD_UNSPECIFIED(0), /** - * - * *
      * Earliest document create time.
      * 
@@ -98,8 +74,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ CREATE_TIME(1), /** - * - * *
      * Latest document update time.
      * 
@@ -111,8 +85,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -121,8 +93,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Earliest document create time.
      * 
@@ -131,8 +101,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATE_TIME_VALUE = 1; /** - * - * *
      * Latest document update time.
      * 
@@ -141,6 +109,7 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TIME_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,49 +134,49 @@ 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; - default: - return null; + case 0: return TIME_FIELD_UNSPECIFIED; + case 1: return CREATE_TIME; + case 2: return UPDATE_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; @@ -228,7 +197,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 @@ -237,14 +205,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 getTimeRange(); @@ -253,45 +222,33 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { public static final int TIME_FIELD_FIELD_NUMBER = 2; private int timeField_; /** - * - * *
    * Specifies which time field to filter documents on.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .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.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The timeField. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.valueOf(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.valueOf(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; @@ -303,13 +260,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); @@ -322,12 +278,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; @@ -337,17 +293,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; @@ -372,136 +328,130 @@ 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(); @@ -517,9 +467,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 @@ -538,8 +488,7 @@ 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); + com.google.cloud.contentwarehouse.v1.TimeFilter result = new com.google.cloud.contentwarehouse.v1.TimeFilter(this); if (timeRangeBuilder_ == null) { result.timeRange_ = timeRange_; } else { @@ -554,39 +503,38 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter 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.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; @@ -594,8 +542,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()); } @@ -628,25 +575,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTimeRangeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 16: - { - timeField_ = input.readEnum(); - - 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); + + break; + } // case 10 + case 16: { + timeField_ = input.readEnum(); + + 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) { @@ -659,13 +605,9 @@ public Builder mergeFrom( 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() { @@ -673,7 +615,6 @@ public boolean hasTimeRange() { } /** * .google.type.Interval time_range = 1; - * * @return The timeRange. */ public com.google.type.Interval getTimeRange() { @@ -683,7 +624,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) { @@ -697,8 +640,11 @@ public Builder setTimeRange(com.google.type.Interval value) { 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(); onChanged(); @@ -708,12 +654,14 @@ public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { 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 (timeRange_ != null) { timeRange_ = - com.google.type.Interval.newBuilder(timeRange_).mergeFrom(value).buildPartial(); + com.google.type.Interval.newBuilder(timeRange_).mergeFrom(value).buildPartial(); } else { timeRange_ = value; } @@ -724,7 +672,9 @@ public Builder mergeTimeRange(com.google.type.Interval value) { return this; } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public Builder clearTimeRange() { if (timeRangeBuilder_ == null) { timeRange_ = null; @@ -736,33 +686,37 @@ public Builder clearTimeRange() { return this; } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public com.google.type.Interval.Builder getTimeRangeBuilder() { - + 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_; @@ -770,71 +724,55 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { private int timeField_ = 0; /** - * - * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .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.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .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. */ public Builder setTimeFieldValue(int value) { - + timeField_ = value; onChanged(); return this; } /** - * - * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The timeField. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.valueOf(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.valueOf(timeField_); + return result == null ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED : result; } /** - * - * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @param value The timeField to set. * @return This builder for chaining. */ @@ -842,32 +780,29 @@ public Builder setTimeField(com.google.cloud.contentwarehouse.v1.TimeFilter.Time if (value == null) { throw new NullPointerException(); } - + timeField_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return This builder for chaining. */ public Builder clearTimeField() { - + timeField_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -877,12 +812,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(); } @@ -891,27 +826,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; @@ -926,4 +861,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 c3881c68c79e..9dab6acc52b8 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,66 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .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.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .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 136676739a8e..d22302a6596c 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List values_; /** - * - * *
    * List of timestamp values.
    * 
@@ -83,8 +62,6 @@ public java.util.List getVa return values_; } /** - * - * *
    * List of timestamp values.
    * 
@@ -92,13 +69,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.
    * 
@@ -110,8 +85,6 @@ public int getValuesCount() { return values_.size(); } /** - * - * *
    * List of timestamp values.
    * 
@@ -123,8 +96,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index) return values_.get(index); } /** - * - * *
    * List of timestamp values.
    * 
@@ -138,7 +109,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 +135,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 +146,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; } @@ -204,135 +176,129 @@ 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(); @@ -347,9 +313,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 @@ -368,8 +334,7 @@ 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); int from_bitField0_ = bitField0_; if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -388,39 +353,38 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray 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.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; @@ -428,8 +392,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()) { @@ -448,10 +411,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_); } @@ -483,27 +445,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) { @@ -513,29 +473,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.
      * 
@@ -550,8 +502,6 @@ public java.util.List getVa } } /** - * - * *
      * List of timestamp values.
      * 
@@ -566,8 +516,6 @@ public int getValuesCount() { } } /** - * - * *
      * List of timestamp values.
      * 
@@ -582,15 +530,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(); @@ -604,8 +551,6 @@ public Builder setValues(int index, com.google.cloud.contentwarehouse.v1.Timesta return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -624,8 +569,6 @@ public Builder setValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -646,15 +589,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(); @@ -668,8 +610,6 @@ public Builder addValues(int index, com.google.cloud.contentwarehouse.v1.Timesta return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -688,8 +628,6 @@ public Builder addValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -708,8 +646,6 @@ public Builder addValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -720,7 +656,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); @@ -728,8 +665,6 @@ public Builder addAllValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -747,8 +682,6 @@ public Builder clearValues() { return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -766,20 +699,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.
      * 
@@ -789,22 +719,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 { @@ -812,8 +739,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } } /** - * - * *
      * List of timestamp values.
      * 
@@ -821,56 +746,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); } @@ -880,12 +798,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(); } @@ -894,27 +812,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; @@ -929,4 +847,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 6c7ac70b7307..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 66ee342d685f..c3a9827c0952 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,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,136 +102,129 @@ 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(); @@ -258,9 +232,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 @@ -279,8 +253,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; } @@ -289,39 +262,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; @@ -329,8 +301,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; @@ -357,13 +328,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) { @@ -373,9 +343,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); } @@ -385,12 +355,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(); } @@ -399,27 +369,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; @@ -434,4 +404,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 3c8f2c38f4eb..8d36124832dc 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,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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; } @@ -92,36 +71,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 @@ -129,26 +102,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
    * 
@@ -158,15 +126,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.
@@ -174,15 +140,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.
@@ -190,7 +153,6 @@ public boolean hasTextValue() {
    * 
* * string text_value = 2; - * * @return The textValue. */ public java.lang.String getTextValue() { @@ -201,7 +163,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; @@ -210,8 +173,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.
@@ -219,17 +180,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; } @@ -240,7 +202,6 @@ public com.google.protobuf.ByteString getTextValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valueCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) value_); } @@ -269,9 +231,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_); @@ -284,21 +245,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: @@ -332,135 +294,129 @@ 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(); @@ -473,9 +429,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 @@ -494,8 +450,7 @@ 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); + com.google.cloud.contentwarehouse.v1.TimestampValue result = new com.google.cloud.contentwarehouse.v1.TimestampValue(this); if (valueCase_ == 1) { if (timestampValueBuilder_ == null) { result.value_ = value_; @@ -515,39 +470,38 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue 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.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; @@ -555,25 +509,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(); @@ -601,26 +551,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) { @@ -630,12 +579,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() { @@ -645,20 +594,15 @@ public Builder clearValue() { return this; } + 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 @@ -666,14 +610,11 @@ public boolean hasTimestampValue() { return valueCase_ == 1; } /** - * - * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return The timestampValue. */ @java.lang.Override @@ -691,8 +632,6 @@ public com.google.protobuf.Timestamp getTimestampValue() { } } /** - * - * *
      * Timestamp value
      * 
@@ -713,15 +652,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(); @@ -732,8 +670,6 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Timestamp value
      * 
@@ -742,11 +678,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; } @@ -762,8 +697,6 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp value
      * 
@@ -787,8 +720,6 @@ public Builder clearTimestampValue() { return this; } /** - * - * *
      * Timestamp value
      * 
@@ -799,8 +730,6 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { return getTimestampValueFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp value
      * 
@@ -819,8 +748,6 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { } } /** - * - * *
      * Timestamp value
      * 
@@ -828,31 +755,25 @@ 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; - onChanged(); - ; + onChanged();; return timestampValueBuilder_; } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -860,7 +781,6 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
      * 
* * string text_value = 2; - * * @return Whether the textValue field is set. */ @java.lang.Override @@ -868,8 +788,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.
@@ -877,7 +795,6 @@ public boolean hasTextValue() {
      * 
* * string text_value = 2; - * * @return The textValue. */ @java.lang.Override @@ -887,7 +804,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; @@ -898,8 +816,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.
@@ -907,18 +823,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; } @@ -928,8 +845,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.
@@ -937,22 +852,20 @@ 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) { + public Builder setTextValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 2; + 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.
@@ -960,7 +873,6 @@ public Builder setTextValue(java.lang.String value) {
      * 
* * string text_value = 2; - * * @return This builder for chaining. */ public Builder clearTextValue() { @@ -972,8 +884,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.
@@ -981,23 +891,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) { + public Builder setTextValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1007,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(); } @@ -1021,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; @@ -1056,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 71c6a244b632..291e09929465 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); public 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 95e409432972..d0cb6630a22f 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,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -96,13 +78,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; @@ -121,136 +102,129 @@ 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(); @@ -258,9 +232,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 @@ -279,8 +253,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; } @@ -289,39 +262,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; @@ -329,8 +301,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; @@ -357,13 +328,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) { @@ -373,9 +343,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); } @@ -385,12 +355,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(); } @@ -399,27 +369,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; @@ -434,4 +404,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 68% 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 cf9de4004668..3ef191d57e23 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,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the document to update.
    * Format:
@@ -80,10 +59,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 @@ -92,15 +68,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:
@@ -109,18 +84,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 { @@ -131,16 +105,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 @@ -148,34 +117,23 @@ 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() { @@ -185,15 +143,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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 @@ -201,26 +156,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.
@@ -229,23 +177,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   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 CW Document.
    * 
* - * .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 @@ -253,50 +196,37 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** - * - * *
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { return getCloudAiDocumentOption(); } 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 @@ -304,25 +234,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.
    * 
@@ -335,7 +258,6 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOpti } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -376,17 +299,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; @@ -396,30 +322,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; @@ -456,136 +386,129 @@ 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(); @@ -619,9 +542,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 @@ -640,8 +563,7 @@ 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); + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(this); result.name_ = name_; if (documentBuilder_ == null) { result.document_ = document_; @@ -671,39 +593,38 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest 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.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; @@ -711,8 +632,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_; onChanged(); @@ -755,44 +675,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 42: - { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getUpdateOptionsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 42: { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -805,8 +726,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -815,16 +734,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; @@ -833,8 +750,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -843,17 +758,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 { @@ -861,8 +775,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -871,25 +783,21 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -898,21 +806,16 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -921,19 +824,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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -941,58 +842,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 documentBuilder_ != null || 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. */ 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) { @@ -1008,15 +890,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) { @@ -1030,23 +908,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 (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); } else { document_ = value; } @@ -1058,15 +930,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() { if (documentBuilder_ == null) { @@ -1080,64 +948,48 @@ 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() { - + onChanged(); 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_; @@ -1145,49 +997,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1209,8 +1048,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.
@@ -1230,8 +1067,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1239,14 +1074,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 (requestMetadata_ != null) {
           requestMetadata_ =
-              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1258,8 +1090,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1279,8 +1109,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1288,15 +1116,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() {
+      
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1304,19 +1129,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.
@@ -1325,17 +1146,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_;
@@ -1343,58 +1161,41 @@ 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 CW Document.
      * 
* - * .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 cloudAiDocumentOptionBuilder_ != null || cloudAiDocumentOption_ != null; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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(); @@ -1408,14 +1209,11 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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) { @@ -1429,24 +1227,17 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 (cloudAiDocumentOption_ != null) { cloudAiDocumentOption_ = - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder( - cloudAiDocumentOption_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder(cloudAiDocumentOption_).mergeFrom(value).buildPartial(); } else { cloudAiDocumentOption_ = value; } @@ -1458,14 +1249,11 @@ public Builder mergeCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ public Builder clearCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { @@ -1479,63 +1267,48 @@ public Builder clearCloudAiDocumentOption() { return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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() { + onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** - * - * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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_; @@ -1543,47 +1316,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 updateOptionsBuilder_ != null || updateOptions_ != null; } /** - * - * *
      * 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.
      * 
@@ -1604,8 +1364,6 @@ public Builder setUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOptio return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1624,8 +1382,6 @@ public Builder setUpdateOptions( return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1636,9 +1392,7 @@ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOpt if (updateOptionsBuilder_ == null) { if (updateOptions_ != null) { updateOptions_ = - com.google.cloud.contentwarehouse.v1.UpdateOptions.newBuilder(updateOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.UpdateOptions.newBuilder(updateOptions_).mergeFrom(value).buildPartial(); } else { updateOptions_ = value; } @@ -1650,8 +1404,6 @@ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOpt return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1670,8 +1422,6 @@ public Builder clearUpdateOptions() { return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1679,13 +1429,11 @@ public Builder clearUpdateOptions() { * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; */ public com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder getUpdateOptionsBuilder() { - + onChanged(); return getUpdateOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Options for the update operation.
      * 
@@ -1696,14 +1444,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.
      * 
@@ -1711,24 +1456,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); } @@ -1738,12 +1480,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(); } @@ -1752,27 +1494,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; @@ -1787,4 +1529,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 70% 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 cf2b2c6240e3..2e2ff49c6d8e 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,71 +93,51 @@ public interface UpdateDocumentRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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 71% 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 0a6870f55d49..788e4fc16461 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,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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 @@ -83,25 +62,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.
    * 
@@ -116,8 +88,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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 +95,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 +102,6 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -142,18 +109,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,23 +125,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() {
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
     return getRuleEngineOutput();
   }
 
   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 @@ -187,26 +145,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,7 +171,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   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 (document_ != null) {
       output.writeMessage(1, getDocument());
     }
@@ -252,13 +203,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;
@@ -268,25 +222,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;
@@ -317,136 +273,129 @@ 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(); @@ -472,9 +421,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 @@ -493,8 +442,7 @@ 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); + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse(this); if (documentBuilder_ == null) { result.document_ = document_; } else { @@ -518,39 +466,38 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.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; @@ -558,8 +505,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()); } @@ -595,32 +541,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -633,47 +580,34 @@ public Builder mergeFrom( 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 documentBuilder_ != null || document_ != null; } /** - * - * *
      * 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.
      * 
@@ -694,8 +628,6 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -714,8 +646,6 @@ public Builder setDocument( return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -726,9 +656,7 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); } else { document_ = value; } @@ -740,8 +668,6 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -760,8 +686,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -769,13 +693,11 @@ public Builder clearDocument() { * .google.cloud.contentwarehouse.v1.Document document = 1; */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -786,14 +708,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.
      * 
@@ -801,17 +720,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_; @@ -819,13 +735,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.
@@ -833,15 +744,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 ruleEngineOutputBuilder_ != null || ruleEngineOutput_ != null; } /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -849,21 +757,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.
@@ -872,8 +775,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();
@@ -887,8 +789,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -909,8 +809,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -919,14 +817,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 (ruleEngineOutput_ != null) {
           ruleEngineOutput_ =
-              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_).mergeFrom(value).buildPartial();
         } else {
           ruleEngineOutput_ = value;
         }
@@ -938,8 +833,6 @@ public Builder mergeRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -960,8 +853,6 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -970,15 +861,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() {
+      
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -987,19 +875,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.
@@ -1009,17 +893,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_;
@@ -1027,49 +908,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 metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * 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.
@@ -1091,8 +959,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1112,8 +978,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1125,9 +989,7 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1139,8 +1001,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1160,8 +1020,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1170,13 +1028,11 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1188,14 +1044,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.
@@ -1204,24 +1057,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);
     }
 
@@ -1231,12 +1081,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();
   }
@@ -1245,27 +1095,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;
@@ -1280,4 +1130,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 e119cfd0ceee..d0defb62e031 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -68,13 +42,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.
@@ -82,13 +53,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.
@@ -100,34 +68,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 61%
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 3b891696bf38..4d2028ba445c 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,87 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -127,16 +101,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 @@ -144,34 +113,23 @@ 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() { @@ -179,7 +137,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +148,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -211,7 +169,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; @@ -221,18 +180,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; @@ -257,136 +217,129 @@ 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(); @@ -402,14 +355,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(); } @@ -424,8 +376,7 @@ 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); + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(this); result.name_ = name_; if (documentSchemaBuilder_ == null) { result.documentSchema_ = documentSchema_; @@ -440,50 +391,46 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); @@ -517,25 +464,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentSchemaFieldBuilder().getBuilder(), + extensionRegistry); + + 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,24 +494,20 @@ public Builder mergeFrom( 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; @@ -574,25 +516,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 { @@ -600,73 +539,60 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -674,58 +600,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 documentSchemaBuilder_ != null || 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. */ 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) { @@ -741,15 +648,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) { @@ -763,23 +666,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 (documentSchema_ != null) { documentSchema_ = - com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_).mergeFrom(value).buildPartial(); } else { documentSchema_ = value; } @@ -791,15 +688,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() { if (documentSchemaBuilder_ == null) { @@ -813,72 +706,55 @@ 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() { - + onChanged(); 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); } @@ -888,43 +764,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; @@ -936,8 +810,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 70% 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 c7924732d690..733d76aad98f 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,113 +1,83 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.UpdateType result = - com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(updateType_); + com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(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,
@@ -116,7 +86,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 @@ -124,8 +93,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -134,7 +101,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -142,8 +108,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,
@@ -161,14 +125,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 @@ -176,25 +137,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.
    * 
@@ -202,13 +156,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() { + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder() { return getMergeFieldsOptions(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,9 +172,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) { @@ -240,15 +192,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; @@ -258,22 +212,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; @@ -302,135 +257,129 @@ 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(); @@ -452,9 +401,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 @@ -473,8 +422,7 @@ 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); + com.google.cloud.contentwarehouse.v1.UpdateOptions result = new com.google.cloud.contentwarehouse.v1.UpdateOptions(this); result.updateType_ = updateType_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -494,39 +442,38 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions 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.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; @@ -534,8 +481,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()); } @@ -571,32 +517,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - updateType_ = input.readEnum(); + case 8: { + updateType_ = input.readEnum(); - break; - } // case 8 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 8 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage( - getMergeFieldsOptionsFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getMergeFieldsOptionsFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -609,65 +554,51 @@ public Builder mergeFrom( 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. */ public Builder setUpdateTypeValue(int value) { - + updateType_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.UpdateType result = - com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(updateType_); + com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(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. */ @@ -675,24 +606,21 @@ public Builder setUpdateType(com.google.cloud.contentwarehouse.v1.UpdateType val if (value == null) { throw new NullPointerException(); } - + updateType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return This builder for chaining. */ public Builder clearUpdateType() { - + updateType_ = 0; onChanged(); return this; @@ -700,13 +628,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,
@@ -715,15 +638,12 @@ public Builder clearUpdateType() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -732,21 +652,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,
@@ -770,8 +685,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -781,7 +694,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();
         onChanged();
@@ -792,8 +706,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -807,7 +719,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -819,8 +731,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -842,8 +752,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -854,13 +762,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -874,14 +780,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,
@@ -892,17 +795,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_;
@@ -910,55 +810,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 mergeFieldsOptionsBuilder_ != null || mergeFieldsOptions_ != null; } /** - * - * *
      * 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(); @@ -972,8 +858,6 @@ public Builder setMergeFieldsOptions( return this; } /** - * - * *
      * Options for merging.
      * 
@@ -992,23 +876,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 (mergeFieldsOptions_ != null) { mergeFieldsOptions_ = - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.newBuilder( - mergeFieldsOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.newBuilder(mergeFieldsOptions_).mergeFrom(value).buildPartial(); } else { mergeFieldsOptions_ = value; } @@ -1020,8 +898,6 @@ public Builder mergeMergeFieldsOptions( return this; } /** - * - * *
      * Options for merging.
      * 
@@ -1040,42 +916,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() { + 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.
      * 
@@ -1083,24 +950,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); } @@ -1110,12 +974,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(); } @@ -1124,27 +988,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; @@ -1159,4 +1023,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 88d85a5bd7d1..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 62% 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 f8687f833c0e..6b0f6cce74c9 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,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,33 +66,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 { @@ -127,16 +101,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 @@ -144,34 +113,23 @@ 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() { @@ -179,7 +137,6 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +148,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -211,7 +169,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; @@ -221,18 +180,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; @@ -257,136 +217,129 @@ 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(); @@ -402,9 +355,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 @@ -423,8 +376,7 @@ 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); + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(this); result.name_ = name_; if (ruleSetBuilder_ == null) { result.ruleSet_ = ruleSet_; @@ -439,39 +391,38 @@ public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest 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.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; @@ -479,8 +430,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_; onChanged(); @@ -514,25 +464,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getRuleSetFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -545,24 +494,20 @@ public Builder mergeFrom( 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; @@ -571,25 +516,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 { @@ -597,73 +539,60 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -671,58 +600,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 ruleSetBuilder_ != null || 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. */ 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) { @@ -738,15 +648,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) { @@ -760,23 +666,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 (ruleSet_ != null) { ruleSet_ = - com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_).mergeFrom(value).buildPartial(); } else { ruleSet_ = value; } @@ -788,15 +688,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() { if (ruleSetBuilder_ == null) { @@ -810,71 +706,55 @@ 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() { - + onChanged(); 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); } @@ -884,12 +764,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(); } @@ -898,27 +778,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; @@ -933,4 +813,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 a7b0cef63a89..b1fd3e305e81 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,61 +12,54 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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;
   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 @@ -92,33 +68,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 { @@ -129,16 +103,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 @@ -146,34 +115,23 @@ 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() { @@ -181,7 +139,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -213,7 +171,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; @@ -223,18 +182,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; @@ -259,104 +219,96 @@ 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
@@ -365,32 +317,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();
@@ -406,14 +359,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();
     }
 
@@ -428,8 +380,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(this);
       result.name_ = name_;
       if (synonymSetBuilder_ == null) {
         result.synonymSet_ = synonymSet_;
@@ -444,39 +395,38 @@ public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest 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.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;
@@ -484,9 +434,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_;
         onChanged();
@@ -520,25 +468,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSynonymSetFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSynonymSetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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,24 +498,20 @@ public Builder mergeFrom(
 
     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; @@ -577,25 +520,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 { @@ -603,73 +543,60 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -677,58 +604,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 synonymSetBuilder_ != null || 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. */ 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) { @@ -744,15 +652,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) { @@ -766,23 +670,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 (synonymSet_ != null) { synonymSet_ = - com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_).mergeFrom(value).buildPartial(); } else { synonymSet_ = value; } @@ -794,15 +692,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() { if (synonymSetBuilder_ == null) { @@ -816,71 +710,55 @@ 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() { - + onChanged(); 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); } @@ -890,13 +768,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(); } @@ -905,27 +782,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; @@ -940,4 +817,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 71% 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 7ffb1aad9d7e..60de88455b77 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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. Any field masks will be ignored.
    * 
@@ -49,8 +29,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_REPLACE(1), /** - * - * *
    * Merge the fields into the existing entities.
    * 
@@ -59,8 +37,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_MERGE(2), /** - * - * *
    * Inserts the properties by names.
    * 
@@ -69,8 +45,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES(3), /** - * - * *
    * Replace the properties by names.
    * 
@@ -79,8 +53,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES(4), /** - * - * *
    * Delete the properties by names.
    * 
@@ -92,8 +64,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Defaults to full replace behavior, ie. FULL_REPLACE.
    * 
@@ -102,8 +72,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Fully replace all the fields. Any field masks will be ignored.
    * 
@@ -112,8 +80,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.
    * 
@@ -122,8 +88,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_MERGE_VALUE = 2; /** - * - * *
    * Inserts the properties by names.
    * 
@@ -132,8 +96,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.
    * 
@@ -142,8 +104,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.
    * 
@@ -152,6 +112,7 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -176,55 +137,52 @@ 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; - 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; + 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; @@ -240,3 +198,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 70% 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 21313c364170..3356d9126225 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,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -/** Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} */ -public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} + */ +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.EMPTY; @@ -36,35 +22,32 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object id_; /** - * - * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -74,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -83,15 +65,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.
@@ -101,15 +82,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 { @@ -120,45 +102,37 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int GROUP_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList groupIds_; /** - * - * *
    * 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. */ @@ -166,24 +140,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; @@ -195,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -230,16 +202,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; } @@ -262,128 +235,126 @@ 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; } - /** Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} + */ + 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(); @@ -395,9 +366,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_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 @@ -416,8 +387,7 @@ 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); + com.google.cloud.contentwarehouse.v1.UserInfo result = new com.google.cloud.contentwarehouse.v1.UserInfo(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (((bitField0_ & 0x00000001) != 0)) { @@ -433,39 +403,38 @@ public com.google.cloud.contentwarehouse.v1.UserInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -514,26 +483,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - - 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(); + + 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) { @@ -543,13 +509,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.
@@ -559,13 +522,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; @@ -574,8 +537,6 @@ public java.lang.String getId() { } } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -585,14 +546,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 { @@ -600,8 +562,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.
@@ -611,22 +571,20 @@ 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) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -636,18 +594,15 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -657,70 +612,60 @@ 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) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList groupIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList groupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { groupIds_ = new com.google.protobuf.LazyStringArrayList(groupIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -728,95 +673,85 @@ 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) { + public Builder setGroupIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGroupIdsIsMutable(); + throw new NullPointerException(); + } + ensureGroupIdsIsMutable(); groupIds_.set(index, value); 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 groupIds to add. * @return This builder for chaining. */ - public Builder addGroupIds(java.lang.String value) { + public Builder addGroupIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGroupIdsIsMutable(); + throw new NullPointerException(); + } + ensureGroupIdsIsMutable(); groupIds_.add(value); 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 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_); 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() { @@ -826,31 +761,29 @@ public Builder clearGroupIds() { 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) { + public Builder addGroupIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureGroupIdsIsMutable(); groupIds_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,12 +793,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(); } @@ -874,27 +807,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; @@ -909,4 +842,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 3a90780e8b66..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 ed864f2e38ca..514c540100bc 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,50 +13,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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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;
   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),
@@ -84,7 +64,6 @@ public enum KindCase
     BOOLEAN_VALUE(7),
     KIND_NOT_SET(0);
     private final int value;
-
     private KindCase(int value) {
       this.value = value;
     }
@@ -100,46 +79,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 @@ -147,14 +115,11 @@ public boolean hasFloatValue() { return kindCase_ == 1; } /** - * - * *
    * Represents a float value.
    * 
* * float float_value = 1; - * * @return The floatValue. */ @java.lang.Override @@ -167,14 +132,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 @@ -182,14 +144,11 @@ public boolean hasIntValue() { return kindCase_ == 2; } /** - * - * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; - * * @return The intValue. */ @java.lang.Override @@ -202,28 +161,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() { @@ -234,7 +187,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; @@ -243,24 +197,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; } @@ -272,14 +225,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 @@ -287,26 +237,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.
    * 
@@ -316,21 +261,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 @@ -338,26 +280,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.
    * 
@@ -367,21 +304,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 @@ -389,26 +323,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.
    * 
@@ -418,21 +347,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 @@ -440,14 +366,11 @@ public boolean hasBooleanValue() { return kindCase_ == 7; } /** - * - * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; - * * @return The booleanValue. */ @java.lang.Override @@ -459,7 +382,6 @@ public boolean getBooleanValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -471,12 +393,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_); @@ -491,7 +416,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); } @@ -503,37 +429,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; @@ -543,37 +466,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: @@ -592,7 +521,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; @@ -616,7 +546,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: @@ -626,104 +557,97 @@ 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
@@ -733,32 +657,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();
@@ -777,9 +702,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
@@ -798,8 +723,7 @@ 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);
+      com.google.cloud.contentwarehouse.v1.Value result = new com.google.cloud.contentwarehouse.v1.Value(this);
       if (kindCase_ == 1) {
         result.kind_ = kind_;
       }
@@ -842,39 +766,38 @@ public com.google.cloud.contentwarehouse.v1.Value 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.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;
@@ -884,47 +807,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();
@@ -952,56 +867,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) {
@@ -1011,12 +924,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() {
@@ -1026,29 +939,24 @@ public Builder clearKind() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * 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() { @@ -1058,14 +966,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. */ @@ -1076,14 +981,11 @@ public Builder setFloatValue(float value) { return this; } /** - * - * *
      * Represents a float value.
      * 
* * float float_value = 1; - * * @return This builder for chaining. */ public Builder clearFloatValue() { @@ -1096,28 +998,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() { @@ -1127,14 +1023,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. */ @@ -1145,14 +1038,11 @@ public Builder setIntValue(int value) { return this; } /** - * - * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; - * * @return This builder for chaining. */ public Builder clearIntValue() { @@ -1165,14 +1055,11 @@ public Builder clearIntValue() { } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1180,14 +1067,11 @@ public boolean hasStringValue() { return kindCase_ == 3; } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @return The stringValue. */ @java.lang.Override @@ -1197,7 +1081,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; @@ -1208,25 +1093,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; } @@ -1236,35 +1120,30 @@ 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) { + public Builder setStringValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 3; + 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() { @@ -1276,22 +1155,20 @@ 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) { + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); kindCase_ = 3; kind_ = value; onChanged(); @@ -1299,19 +1176,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 @@ -1319,14 +1190,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 @@ -1344,8 +1212,6 @@ public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { } } /** - * - * *
      * Represents an enum value.
      * 
@@ -1366,8 +1232,6 @@ public Builder setEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue value return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1386,8 +1250,6 @@ public Builder setEnumValue( return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1396,13 +1258,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; } @@ -1418,8 +1277,6 @@ public Builder mergeEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue val return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1443,8 +1300,6 @@ public Builder clearEnumValue() { return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1455,8 +1310,6 @@ public com.google.cloud.contentwarehouse.v1.EnumValue.Builder getEnumValueBuilde return getEnumValueFieldBuilder().getBuilder(); } /** - * - * *
      * Represents an enum value.
      * 
@@ -1475,8 +1328,6 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui } } /** - * - * *
      * Represents an enum value.
      * 
@@ -1484,44 +1335,32 @@ 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()); kind_ = null; } kindCase_ = 4; - onChanged(); - ; + onChanged();; return enumValueBuilder_; } 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 @@ -1529,14 +1368,11 @@ public boolean hasDatetimeValue() { return kindCase_ == 5; } /** - * - * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; - * * @return The datetimeValue. */ @java.lang.Override @@ -1554,8 +1390,6 @@ public com.google.type.DateTime getDatetimeValue() { } } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1576,15 +1410,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(); @@ -1595,8 +1428,6 @@ public Builder setDatetimeValue(com.google.type.DateTime.Builder builderForValue return this; } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1605,11 +1436,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; } @@ -1625,8 +1455,6 @@ public Builder mergeDatetimeValue(com.google.type.DateTime value) { return this; } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1650,8 +1478,6 @@ public Builder clearDatetimeValue() { return this; } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1662,8 +1488,6 @@ public com.google.type.DateTime.Builder getDatetimeValueBuilder() { return getDatetimeValueFieldBuilder().getBuilder(); } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1682,8 +1506,6 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { } } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1691,42 +1513,32 @@ 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; - onChanged(); - ; + onChanged();; return datetimeValueBuilder_; } 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 @@ -1734,14 +1546,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 @@ -1759,8 +1568,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { } } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1781,8 +1588,6 @@ public Builder setTimestampValue(com.google.cloud.contentwarehouse.v1.TimestampV return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1801,8 +1606,6 @@ public Builder setTimestampValue( return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1811,13 +1614,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; } @@ -1833,8 +1633,6 @@ public Builder mergeTimestampValue(com.google.cloud.contentwarehouse.v1.Timestam return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1858,8 +1656,6 @@ public Builder clearTimestampValue() { return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1870,8 +1666,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV return getTimestampValueFieldBuilder().getBuilder(); } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1879,8 +1673,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 { @@ -1891,8 +1684,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV } } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1900,53 +1691,41 @@ 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()); kind_ = null; } kindCase_ = 6; - onChanged(); - ; + onChanged();; return timestampValueBuilder_; } /** - * - * *
      * 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() { @@ -1956,14 +1735,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. */ @@ -1974,14 +1750,11 @@ public Builder setBooleanValue(boolean value) { return this; } /** - * - * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; - * * @return This builder for chaining. */ public Builder clearBooleanValue() { @@ -1992,9 +1765,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); } @@ -2004,12 +1777,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(); } @@ -2018,27 +1791,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; @@ -2053,4 +1826,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 e1b38cec20dc..5187b37840fc 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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/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 99% 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 index 56b06af5b796..635bfdb6558b 100644 --- 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 @@ -204,7 +204,7 @@ message SearchDocumentsRequest { // // * Histogram facet (aka filterable properties): Facet names with format // <schema id>.<facet>. Facets will have the - // format of: [a-zA-Z][a-zA-Z0-9_:/-.]. If the facet is a child + // format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child // facet, then the parent hierarchy needs to be specified separated by // dots in the prefix after the schema id. Thus, the format for a multi- // level facet is: <schema id>.<parent facet name>. 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 100% 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 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/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 From 6843e10b7b3cc290759a185a61408e35623fdddf Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 9 Nov 2022 19:03:03 +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 --- .../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/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 - .../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 ...HttpJsonRuleSetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonRuleSetServiceStub.java | 0 ...pJsonSynonymSetServiceCallableFactory.java | 0 .../stub/HttpJsonSynonymSetServiceStub.java | 0 .../v1/stub/RuleSetServiceStub.java | 0 .../v1/stub/RuleSetServiceStubSettings.java | 0 .../v1/stub/SynonymSetServiceStub.java | 0 .../stub/SynonymSetServiceStubSettings.java | 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/MockRuleSetService.java | 0 .../v1/MockRuleSetServiceImpl.java | 0 .../v1/MockSynonymSetService.java | 0 .../v1/MockSynonymSetServiceImpl.java | 0 .../v1/RuleSetServiceClientHttpJsonTest.java | 0 .../v1/RuleSetServiceClientTest.java | 0 .../SynonymSetServiceClientHttpJsonTest.java | 0 .../v1/SynonymSetServiceClientTest.java | 0 .../v1/DocumentLinkServiceGrpc.java | 734 +++++++ .../v1/DocumentSchemaServiceGrpc.java | 901 ++++++++ .../v1/DocumentServiceGrpc.java | 1096 ++++++++++ .../v1/RuleSetServiceGrpc.java | 835 +++++++ .../v1/SynonymSetServiceGrpc.java | 866 ++++++++ .../v1/AccessControlAction.java | 508 +++-- .../v1/AccessControlActionOrBuilder.java | 38 +- .../v1/AccessControlMode.java | 87 +- .../cloud/contentwarehouse/v1/Action.java | 1169 ++++++---- .../v1/ActionExecutorOutput.java | 456 ++-- .../v1/ActionExecutorOutputOrBuilder.java | 33 +- .../contentwarehouse/v1/ActionOrBuilder.java | 107 +- .../contentwarehouse/v1/ActionOutput.java | 564 +++-- .../v1/ActionOutputOrBuilder.java | 42 +- .../v1/AddToFolderAction.java | 358 +-- .../v1/AddToFolderActionOrBuilder.java | 36 +- .../v1/AsyncDocumentServiceRequestProto.java | 82 + .../v1/CloudAIDocumentOption.java | 543 +++-- .../v1/CloudAIDocumentOptionOrBuilder.java | 52 +- .../contentwarehouse/v1/CommonProto.java | 155 ++ .../v1/CreateDocumentLinkRequest.java | 601 ++++-- .../CreateDocumentLinkRequestOrBuilder.java | 63 +- .../v1/CreateDocumentMetadata.java | 254 ++- .../v1/CreateDocumentMetadataOrBuilder.java | 24 + .../v1/CreateDocumentRequest.java | 890 +++++--- .../v1/CreateDocumentRequestOrBuilder.java | 99 +- .../v1/CreateDocumentResponse.java | 522 +++-- .../v1/CreateDocumentResponseOrBuilder.java | 42 +- .../v1/CreateDocumentSchemaRequest.java | 515 +++-- .../CreateDocumentSchemaRequestOrBuilder.java | 95 + .../v1/CreateRuleSetRequest.java | 492 +++-- .../v1/CreateRuleSetRequestOrBuilder.java | 97 + .../v1/CreateSynonymSetRequest.java | 499 +++-- .../v1/CreateSynonymSetRequestOrBuilder.java | 97 + .../contentwarehouse/v1/DataUpdateAction.java | 513 ++--- .../v1/DataUpdateActionOrBuilder.java | 49 +- .../v1/DataValidationAction.java | 509 ++--- .../v1/DataValidationActionOrBuilder.java | 49 +- .../contentwarehouse/v1/DatabaseType.java | 82 +- .../contentwarehouse/v1/DateTimeArray.java | 413 ++-- .../v1/DateTimeArrayOrBuilder.java | 37 +- .../v1/DateTimeTypeOptions.java | 254 ++- .../v1/DateTimeTypeOptionsOrBuilder.java | 24 + .../v1/DeleteDocumentAction.java | 292 +-- .../v1/DeleteDocumentActionOrBuilder.java | 39 + .../v1/DeleteDocumentLinkRequest.java | 473 ++-- .../DeleteDocumentLinkRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentRequest.java | 456 ++-- .../v1/DeleteDocumentRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentSchemaRequest.java | 378 ++-- .../DeleteDocumentSchemaRequestOrBuilder.java | 54 + .../v1/DeleteRuleSetRequest.java | 358 +-- .../v1/DeleteRuleSetRequestOrBuilder.java | 58 + .../v1/DeleteSynonymSetRequest.java | 365 ++-- .../v1/DeleteSynonymSetRequestOrBuilder.java | 58 + .../cloud/contentwarehouse/v1/Document.java | 1921 ++++++++++------- .../contentwarehouse/v1/DocumentLink.java | 1062 +++++---- .../contentwarehouse/v1/DocumentLinkName.java | 0 .../v1/DocumentLinkOrBuilder.java | 98 +- .../v1/DocumentLinkServiceProto.java | 245 +++ .../contentwarehouse/v1/DocumentName.java | 0 .../v1/DocumentOrBuilder.java | 204 +- .../contentwarehouse/v1/DocumentProto.java | 376 ++++ .../contentwarehouse/v1/DocumentQuery.java | 1269 +++++++---- .../v1/DocumentQueryOrBuilder.java | 155 +- .../v1/DocumentReference.java | 938 +++++--- .../v1/DocumentReferenceOrBuilder.java | 107 +- .../contentwarehouse/v1/DocumentSchema.java | 1033 +++++---- .../v1/DocumentSchemaName.java | 0 .../v1/DocumentSchemaOrBuilder.java | 111 +- .../v1/DocumentSchemaProto.java | 238 ++ .../v1/DocumentSchemaServiceProto.java | 204 ++ .../v1/DocumentServiceProto.java | 276 +++ .../v1/DocumentServiceRequestProto.java | 264 +++ .../cloud/contentwarehouse/v1/EnumArray.java | 348 +-- .../v1/EnumArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/EnumTypeOptions.java | 393 ++-- .../v1/EnumTypeOptionsOrBuilder.java | 39 +- .../cloud/contentwarehouse/v1/EnumValue.java | 320 +-- .../v1/EnumValueOrBuilder.java | 27 +- .../contentwarehouse/v1/FetchAclRequest.java | 463 ++-- .../v1/FetchAclRequestOrBuilder.java | 38 +- .../contentwarehouse/v1/FetchAclResponse.java | 417 ++-- .../v1/FetchAclResponseOrBuilder.java | 34 +- .../contentwarehouse/v1/FileTypeFilter.java | 395 ++-- .../v1/FileTypeFilterOrBuilder.java | 24 +- .../contentwarehouse/v1/FiltersProto.java | 145 ++ .../cloud/contentwarehouse/v1/FloatArray.java | 339 +-- .../v1/FloatArrayOrBuilder.java | 27 +- .../contentwarehouse/v1/FloatTypeOptions.java | 254 ++- .../v1/FloatTypeOptionsOrBuilder.java | 24 + .../v1/GetDocumentRequest.java | 456 ++-- .../v1/GetDocumentRequestOrBuilder.java | 43 +- .../v1/GetDocumentSchemaRequest.java | 365 ++-- .../v1/GetDocumentSchemaRequestOrBuilder.java | 54 + .../v1/GetRuleSetRequest.java | 358 +-- .../v1/GetRuleSetRequestOrBuilder.java | 58 + .../v1/GetSynonymSetRequest.java | 358 +-- .../v1/GetSynonymSetRequestOrBuilder.java | 58 + .../contentwarehouse/v1/HistogramProto.java | 133 ++ .../contentwarehouse/v1/HistogramQuery.java | 514 +++-- .../v1/HistogramQueryOrBuilder.java | 53 +- .../v1/HistogramQueryPropertyNameFilter.java | 679 +++--- ...ogramQueryPropertyNameFilterOrBuilder.java | 68 +- .../v1/HistogramQueryResult.java | 589 ++--- .../v1/HistogramQueryResultOrBuilder.java | 59 +- .../contentwarehouse/v1/IntegerArray.java | 346 +-- .../v1/IntegerArrayOrBuilder.java | 27 +- .../v1/IntegerTypeOptions.java | 254 ++- .../v1/IntegerTypeOptionsOrBuilder.java | 24 + .../contentwarehouse/v1/InvalidRule.java | 412 ++-- .../v1/InvalidRuleOrBuilder.java | 35 +- .../v1/ListDocumentSchemasRequest.java | 492 +++-- .../ListDocumentSchemasRequestOrBuilder.java | 47 +- .../v1/ListDocumentSchemasResponse.java | 492 +++-- .../ListDocumentSchemasResponseOrBuilder.java | 42 +- .../v1/ListLinkedSourcesRequest.java | 571 +++-- .../v1/ListLinkedSourcesRequestOrBuilder.java | 55 +- .../v1/ListLinkedSourcesResponse.java | 486 +++-- .../ListLinkedSourcesResponseOrBuilder.java | 45 +- .../v1/ListLinkedTargetsRequest.java | 463 ++-- .../v1/ListLinkedTargetsRequestOrBuilder.java | 43 +- .../v1/ListLinkedTargetsResponse.java | 486 +++-- .../ListLinkedTargetsResponseOrBuilder.java | 45 +- .../v1/ListRuleSetsRequest.java | 472 ++-- .../v1/ListRuleSetsRequestOrBuilder.java | 47 +- .../v1/ListRuleSetsResponse.java | 486 +++-- .../v1/ListRuleSetsResponseOrBuilder.java | 45 +- .../v1/ListSynonymSetsRequest.java | 472 ++-- .../v1/ListSynonymSetsRequestOrBuilder.java | 47 +- .../v1/ListSynonymSetsResponse.java | 476 ++-- .../v1/ListSynonymSetsResponseOrBuilder.java | 45 +- .../contentwarehouse/v1/LocationName.java | 0 .../contentwarehouse/v1/MapProperty.java | 503 +++-- .../v1/MapPropertyOrBuilder.java | 49 +- .../contentwarehouse/v1/MapTypeOptions.java | 251 ++- .../v1/MapTypeOptionsOrBuilder.java | 24 + .../v1/MergeFieldsOptions.java | 335 +-- .../v1/MergeFieldsOptionsOrBuilder.java | 30 +- .../cloud/contentwarehouse/v1/Property.java | 1127 ++++++---- .../contentwarehouse/v1/PropertyArray.java | 403 ++-- .../v1/PropertyArrayOrBuilder.java | 36 +- .../v1/PropertyDefinition.java | 1664 +++++++++----- .../v1/PropertyDefinitionOrBuilder.java | 136 +- .../contentwarehouse/v1/PropertyFilter.java | 410 ++-- .../v1/PropertyFilterOrBuilder.java | 36 +- .../v1/PropertyOrBuilder.java | 91 +- .../v1/PropertyTypeOptions.java | 528 +++-- .../v1/PropertyTypeOptionsOrBuilder.java | 89 + .../contentwarehouse/v1/PublishAction.java | 434 ++-- .../v1/PublishActionOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/QAResult.java | 749 ++++--- .../v1/QAResultOrBuilder.java | 36 +- .../v1/RawDocumentFileType.java | 98 +- .../v1/RemoveFromFolderAction.java | 409 ++-- .../v1/RemoveFromFolderActionOrBuilder.java | 36 +- .../contentwarehouse/v1/RequestMetadata.java | 337 +-- .../v1/RequestMetadataOrBuilder.java | 26 +- .../contentwarehouse/v1/ResponseMetadata.java | 330 +-- .../v1/ResponseMetadataOrBuilder.java | 27 +- .../cloud/contentwarehouse/v1/Rule.java | 770 ++++--- .../contentwarehouse/v1/RuleActionsPair.java | 472 ++-- .../v1/RuleActionsPairOrBuilder.java | 44 +- .../contentwarehouse/v1/RuleEngineOutput.java | 558 +++-- .../v1/RuleEngineOutputOrBuilder.java | 49 +- .../contentwarehouse/v1/RuleEngineProto.java | 372 ++++ .../v1/RuleEvaluatorOutput.java | 699 +++--- .../v1/RuleEvaluatorOutputOrBuilder.java | 72 +- .../contentwarehouse/v1/RuleOrBuilder.java | 69 +- .../cloud/contentwarehouse/v1/RuleSet.java | 629 +++--- .../contentwarehouse/v1/RuleSetName.java | 0 .../contentwarehouse/v1/RuleSetOrBuilder.java | 63 +- .../v1/RuleSetServiceProto.java | 102 + .../v1/RuleSetServiceRequestProto.java | 160 ++ .../v1/SearchDocumentsRequest.java | 996 +++++---- .../v1/SearchDocumentsRequestOrBuilder.java | 96 +- .../v1/SearchDocumentsResponse.java | 1655 +++++++++----- .../v1/SearchDocumentsResponseOrBuilder.java | 120 +- .../contentwarehouse/v1/SetAclRequest.java | 532 +++-- .../v1/SetAclRequestOrBuilder.java | 46 +- .../contentwarehouse/v1/SetAclResponse.java | 414 ++-- .../v1/SetAclResponseOrBuilder.java | 34 +- .../cloud/contentwarehouse/v1/SynonymSet.java | 913 ++++---- .../contentwarehouse/v1/SynonymSetName.java | 0 .../v1/SynonymSetOrBuilder.java | 54 +- .../contentwarehouse/v1/SynonymSetProto.java | 94 + .../v1/SynonymSetServiceProto.java | 104 + .../v1/SynonymSetServiceRequestProto.java | 161 ++ .../cloud/contentwarehouse/v1/TextArray.java | 348 +-- .../v1/TextArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/TextTypeOptions.java | 251 ++- .../v1/TextTypeOptionsOrBuilder.java | 24 + .../cloud/contentwarehouse/v1/TimeFilter.java | 465 ++-- .../v1/TimeFilterOrBuilder.java | 30 +- .../contentwarehouse/v1/TimestampArray.java | 402 ++-- .../v1/TimestampArrayOrBuilder.java | 36 +- .../v1/TimestampTypeOptions.java | 254 ++- .../v1/TimestampTypeOptionsOrBuilder.java | 24 + .../contentwarehouse/v1/TimestampValue.java | 484 +++-- .../v1/TimestampValueOrBuilder.java | 38 +- .../v1/UpdateDocumentMetadata.java | 254 ++- .../v1/UpdateDocumentMetadataOrBuilder.java | 24 + .../v1/UpdateDocumentRequest.java | 816 ++++--- .../v1/UpdateDocumentRequestOrBuilder.java | 91 +- .../v1/UpdateDocumentResponse.java | 522 +++-- .../v1/UpdateDocumentResponseOrBuilder.java | 42 +- .../v1/UpdateDocumentSchemaRequest.java | 515 +++-- .../UpdateDocumentSchemaRequestOrBuilder.java | 99 + .../contentwarehouse/v1/UpdateOptions.java | 490 +++-- .../v1/UpdateOptionsOrBuilder.java | 40 +- .../v1/UpdateRuleSetRequest.java | 492 +++-- .../v1/UpdateRuleSetRequestOrBuilder.java | 99 + .../v1/UpdateSynonymSetRequest.java | 499 +++-- .../v1/UpdateSynonymSetRequestOrBuilder.java | 99 + .../cloud/contentwarehouse/v1/UpdateType.java | 103 +- .../cloud/contentwarehouse/v1/UserInfo.java | 431 ++-- .../v1/UserInfoOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/Value.java | 835 ++++--- .../contentwarehouse/v1/ValueOrBuilder.java | 72 +- .../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 .../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 .../v1/DocumentLinkServiceGrpc.java | 566 ----- .../v1/DocumentSchemaServiceGrpc.java | 679 ------ .../v1/DocumentServiceGrpc.java | 843 -------- .../v1/RuleSetServiceGrpc.java | 651 ------ .../v1/SynonymSetServiceGrpc.java | 675 ------ .../v1/AsyncDocumentServiceRequestProto.java | 70 - .../contentwarehouse/v1/CommonProto.java | 133 -- .../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 | 218 -- .../contentwarehouse/v1/DocumentProto.java | 303 --- .../v1/DocumentSchemaProto.java | 205 -- .../v1/DocumentSchemaServiceProto.java | 184 -- .../v1/DocumentServiceProto.java | 246 --- .../v1/DocumentServiceRequestProto.java | 225 -- .../contentwarehouse/v1/FiltersProto.java | 118 - .../v1/FloatTypeOptionsOrBuilder.java | 9 - .../v1/GetDocumentSchemaRequestOrBuilder.java | 29 - .../v1/GetRuleSetRequestOrBuilder.java | 33 - .../v1/GetSynonymSetRequestOrBuilder.java | 33 - .../contentwarehouse/v1/HistogramProto.java | 113 - .../v1/IntegerTypeOptionsOrBuilder.java | 9 - .../v1/MapTypeOptionsOrBuilder.java | 9 - .../v1/PropertyTypeOptionsOrBuilder.java | 53 - .../contentwarehouse/v1/RuleEngineProto.java | 328 --- .../v1/RuleSetServiceProto.java | 89 - .../v1/RuleSetServiceRequestProto.java | 140 -- .../contentwarehouse/v1/SynonymSetProto.java | 76 - .../v1/SynonymSetServiceProto.java | 91 - .../v1/SynonymSetServiceRequestProto.java | 141 -- .../v1/TextTypeOptionsOrBuilder.java | 9 - .../v1/TimestampTypeOptionsOrBuilder.java | 9 - .../v1/UpdateDocumentMetadataOrBuilder.java | 9 - .../UpdateDocumentSchemaRequestOrBuilder.java | 60 - .../v1/UpdateRuleSetRequestOrBuilder.java | 60 - .../v1/UpdateSynonymSetRequestOrBuilder.java | 60 - 340 files changed, 44170 insertions(+), 27721 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/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/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/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/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/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/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/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 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 (68%) 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 (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java (70%) 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 (68%) 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/CreateDocumentLinkRequest.java (66%) 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 (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java (80%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java (60%) 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 (61%) 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/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 (61%) 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 (67%) 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 (68%) 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 (63%) 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 (74%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java (69%) 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 (83%) 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 (81%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java (89%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java (69%) 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 (71%) 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 (65%) 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/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 (75%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java (70%) 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 (65%) 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/GetDocumentRequest.java (68%) 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 (63%) 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 (63%) 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 (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java (72%) 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 (63%) 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/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 (71%) 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 (68%) 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 (62%) 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 (68%) 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/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 (79%) 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 (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java (85%) 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 (69%) 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 (68%) 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 (73%) 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 (69%) 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 (72%) 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/SearchDocumentsRequest.java (83%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java (91%) 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 (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java (74%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java (80%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java (71%) 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 (63%) 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 (66%) 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 (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java (71%) 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 (61%) 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 (70%) 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 (62%) 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 (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java (70%) 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/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/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%) 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/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/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/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 b78933d672a3..5543c70d3ecf 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 dd85eea60845..bef66257a33e 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 73631898bfd3..e9621ab7ff4c 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/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 a44cd5d4b669..3d1ee0ff4539 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 bb01f6c8a8df..313df7c2031c 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 6f4bf7cf4cfe..1cdab48d7d71 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 8911a8f105e1..7c892e56e803 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 0ab65c48655f..3acf74248912 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 @@ -43,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/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 a964fffa43b4..ab748d4c6576 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 515299985c45..52a65adfe2b8 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/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/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/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/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/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..da565dec4003 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java @@ -0,0 +1,734 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.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 abstract static class DocumentLinkServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getListLinkedTargetsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getListLinkedSourcesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDocumentLinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentLinkMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_CREATE_DOCUMENT_LINK))) + .addMethod( + getDeleteDocumentLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DOCUMENT_LINK))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 DocumentLinkServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DocumentLinkServiceImplBase 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(); + } + } + } + + 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..a0304fa8b90c --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java @@ -0,0 +1,901 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.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 abstract static class DocumentSchemaServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a document schema.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteDocumentSchema( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentSchemaMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getListDocumentSchemasMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_GET_DOCUMENT_SCHEMA))) + .addMethod( + getDeleteDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty>(this, 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>( + this, METHODID_LIST_DOCUMENT_SCHEMAS))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 DocumentSchemaServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DocumentSchemaServiceImplBase 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(); + } + } + } + + 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..35dcc5cef6d5 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java @@ -0,0 +1,1096 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.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.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 abstract static class DocumentServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a document.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void searchDocuments( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchDocumentsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_CREATE_DOCUMENT))) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document>(this, METHODID_GET_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( + this, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DOCUMENT))) + .addMethod( + getSearchDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( + this, METHODID_SEARCH_DOCUMENTS))) + .addMethod( + getFetchAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse>( + this, METHODID_FETCH_ACL))) + .addMethod( + getSetAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse>(this, METHODID_SET_ACL))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + + /** + * + * + *
+     * 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); + } + } + + /** + * + * + *
+   * 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); + } + + /** + * + * + *
+     * 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); + } + } + + /** + * + * + *
+   * 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); + } + + /** + * + * + *
+     * 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_FETCH_ACL = 5; + private static final int METHODID_SET_ACL = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DocumentServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DocumentServiceImplBase 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_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(); + } + } + } + + 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(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 new file mode 100644 index 000000000000..07e5441a24b5 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java @@ -0,0 +1,835 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.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 abstract static class RuleSetServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a ruleset.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteRuleSet( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRuleSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists rulesets.
+     * 
+ */ + public void listRuleSets( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuleSetsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>(this, 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>( + this, METHODID_UPDATE_RULE_SET))) + .addMethod( + getDeleteRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, + com.google.protobuf.Empty>(this, 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>( + this, METHODID_LIST_RULE_SETS))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 RuleSetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(RuleSetServiceImplBase 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(); + } + } + } + + 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..f4c91637c842 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java @@ -0,0 +1,866 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.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 abstract static class SynonymSetServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSynonymSetMethod(), 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.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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listSynonymSets( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSynonymSetsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>( + this, METHODID_UPDATE_SYNONYM_SET))) + .addMethod( + getDeleteSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, + com.google.protobuf.Empty>(this, 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>( + this, METHODID_LIST_SYNONYM_SETS))) + .build(); + } + } + + /** + * + * + *
+   * 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 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 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 SynonymSetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SynonymSetServiceImplBase 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(); + } + } + } + + 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 68% 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 3ec6daa66819..277c438bf06c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for access control list management
  * operations.
@@ -11,58 +28,61 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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 { - /** - * UNKNOWN = 0; - */ + public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { + /** UNKNOWN = 0; */ UNKNOWN(0), /** + * + * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -71,6 +91,8 @@ public enum OperationType */ ADD_POLICY_BINDING(1), /** + * + * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -79,6 +101,8 @@ public enum OperationType */ REMOVE_POLICY_BINDING(2), /** + * + * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -89,11 +113,11 @@ public enum OperationType UNRECOGNIZED(-1), ; - /** - * UNKNOWN = 0; - */ + /** UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -102,6 +126,8 @@ public enum OperationType */ public static final int ADD_POLICY_BINDING_VALUE = 1; /** + * + * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -110,6 +136,8 @@ public enum OperationType */ public static final int REMOVE_POLICY_BINDING_VALUE = 2; /** + * + * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -118,7 +146,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( @@ -143,50 +170,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; @@ -206,33 +236,49 @@ private OperationType(int value) { public static final int OPERATION_TYPE_FIELD_NUMBER = 1; private int 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 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf(operationType_); - return result == null ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf( + 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
@@ -240,6 +286,7 @@ private OperationType(int value) {
    * 
* * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -247,6 +294,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
@@ -254,6 +303,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ @java.lang.Override @@ -261,6 +311,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
@@ -275,6 +327,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -286,9 +339,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) {
@@ -303,13 +357,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;
@@ -319,18 +373,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;
@@ -355,96 +409,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.
@@ -452,33 +514,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();
@@ -494,9 +555,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
@@ -515,7 +576,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);
+      com.google.cloud.contentwarehouse.v1.AccessControlAction result =
+          new com.google.cloud.contentwarehouse.v1.AccessControlAction(this);
       result.operationType_ = operationType_;
       if (policyBuilder_ == null) {
         result.policy_ = policy_;
@@ -530,38 +592,39 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction 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.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;
@@ -569,7 +632,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());
       }
@@ -602,24 +666,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              operationType_ = input.readEnum();
-
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getPolicyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                operationType_ = input.readEnum();
+
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
+
+                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) {
@@ -632,73 +697,100 @@ public Builder mergeFrom(
 
     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. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); 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() { + public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType + getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf(operationType_); - return result == null ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.valueOf( + 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(); } - + operationType_ = value.getNumber(); onChanged(); 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() { - + operationType_ = 0; onChanged(); return this; @@ -706,8 +798,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
@@ -715,12 +812,15 @@ public Builder clearOperationType() {
      * 
* * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || 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
@@ -728,6 +828,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -738,6 +839,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
@@ -760,6 +863,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
@@ -768,8 +873,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();
         onChanged();
@@ -780,6 +884,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
@@ -791,8 +897,7 @@ public Builder setPolicy(
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
         if (policy_ != null) {
-          policy_ =
-            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
         } else {
           policy_ = value;
         }
@@ -804,6 +909,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
@@ -824,6 +931,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
@@ -833,11 +942,13 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2;
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-      
+
       onChanged();
       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
@@ -850,11 +961,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
@@ -864,21 +976,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);
     }
 
@@ -888,12 +1002,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();
   }
@@ -902,27 +1016,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;
@@ -937,6 +1051,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..3c634e06dc44 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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..c6054296dee2 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 72% 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 eb84b2bd6225..dbbe228c6b5f 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,57 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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), @@ -62,6 +83,7 @@ public enum ActionCase DELETE_DOCUMENT_ACTION(10), ACTION_NOT_SET(0); private final int value; + private ActionCase(int value) { this.value = value; } @@ -77,36 +99,47 @@ 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; private volatile java.lang.Object actionId_; /** + * + * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; + * * @return The actionId. */ @java.lang.Override @@ -115,29 +148,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 { @@ -147,11 +180,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 @@ -159,21 +195,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.
    * 
@@ -181,20 +222,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 @@ -202,21 +247,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.
    * 
@@ -224,20 +274,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 @@ -245,21 +299,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.
    * 
@@ -269,18 +328,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 @@ -288,21 +350,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.
    * 
@@ -312,18 +379,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 @@ -331,21 +401,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.
    * 
@@ -355,18 +430,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 @@ -374,42 +453,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 @@ -417,36 +508,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; @@ -458,8 +558,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_); } @@ -497,32 +596,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; @@ -532,44 +638,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: @@ -624,130 +723,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(); @@ -780,9 +885,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 @@ -801,7 +906,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); + com.google.cloud.contentwarehouse.v1.Action result = + new com.google.cloud.contentwarehouse.v1.Action(this); result.actionId_ = actionId_; if (actionCase_ == 2) { if (accessControlBuilder_ == null) { @@ -861,38 +967,39 @@ public com.google.cloud.contentwarehouse.v1.Action 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.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; @@ -906,37 +1013,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(); @@ -964,66 +1079,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - actionId_ = input.readStringRequireUtf8(); + case 10: + { + actionId_ = input.readStringRequireUtf8(); - 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: + 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) { @@ -1033,12 +1145,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() { @@ -1048,21 +1160,22 @@ public Builder clearAction() { return this; } - 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; @@ -1071,20 +1184,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 { @@ -1092,67 +1206,80 @@ 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) { + public Builder setActionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionId_ = value; onChanged(); return this; } /** + * + * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; + * * @return This builder for chaining. */ public Builder clearActionId() { - + actionId_ = getDefaultInstance().getActionId(); onChanged(); 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) { + public Builder setActionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionId_ = value; onChanged(); return this; } 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 @@ -1160,11 +1287,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 @@ -1182,13 +1312,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(); @@ -1202,6 +1335,8 @@ public Builder setAccessControl(com.google.cloud.contentwarehouse.v1.AccessContr return this; } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1220,18 +1355,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; } @@ -1247,6 +1389,8 @@ public Builder mergeAccessControl(com.google.cloud.contentwarehouse.v1.AccessCon return this; } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1270,16 +1414,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.
      * 
@@ -1287,7 +1436,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 { @@ -1298,6 +1448,8 @@ public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAcce } } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1305,32 +1457,44 @@ 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()); action_ = null; } actionCase_ = 2; - onChanged();; + onChanged(); + ; return accessControlBuilder_; } 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 @@ -1338,11 +1502,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 @@ -1360,13 +1527,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(); @@ -1380,6 +1550,8 @@ public Builder setDataValidation(com.google.cloud.contentwarehouse.v1.DataValida return this; } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1398,18 +1570,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; } @@ -1425,6 +1604,8 @@ public Builder mergeDataValidation(com.google.cloud.contentwarehouse.v1.DataVali return this; } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1448,16 +1629,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.
      * 
@@ -1465,7 +1651,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 { @@ -1476,6 +1663,8 @@ public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDat } } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1483,32 +1672,44 @@ 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()); action_ = null; } actionCase_ = 3; - onChanged();; + onChanged(); + ; return dataValidationBuilder_; } 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 @@ -1516,11 +1717,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 @@ -1538,6 +1742,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { } } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1558,6 +1764,8 @@ public Builder setDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateActi return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1576,6 +1784,8 @@ public Builder setDataUpdate( return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1584,10 +1794,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; } @@ -1603,6 +1817,8 @@ public Builder mergeDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateAc return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1626,6 +1842,8 @@ public Builder clearDataUpdate() { return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1636,6 +1854,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder getDataUpda return getDataUpdateFieldBuilder().getBuilder(); } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1654,6 +1874,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd } } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1661,32 +1883,44 @@ 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()); action_ = null; } actionCase_ = 4; - onChanged();; + onChanged(); + ; return dataUpdateBuilder_; } 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 @@ -1694,11 +1928,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 @@ -1716,6 +1953,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { } } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1736,6 +1975,8 @@ public Builder setAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolderAc return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1754,6 +1995,8 @@ public Builder setAddToFolder( return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1762,10 +2005,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; } @@ -1781,6 +2028,8 @@ public Builder mergeAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolder return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1804,6 +2053,8 @@ public Builder clearAddToFolder() { return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1814,6 +2065,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo return getAddToFolderFieldBuilder().getBuilder(); } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1821,7 +2074,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 { @@ -1832,6 +2086,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToF } } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1839,32 +2095,44 @@ 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()); action_ = null; } actionCase_ = 5; - onChanged();; + onChanged(); + ; return addToFolderBuilder_; } 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 @@ -1872,11 +2140,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 @@ -1894,6 +2165,8 @@ public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { } } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1914,6 +2187,8 @@ public Builder setPublishToPubSub(com.google.cloud.contentwarehouse.v1.PublishAc return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1932,6 +2207,8 @@ public Builder setPublishToPubSub( return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1940,10 +2217,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; } @@ -1959,6 +2239,8 @@ public Builder mergePublishToPubSub(com.google.cloud.contentwarehouse.v1.Publish return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1982,6 +2264,8 @@ public Builder clearPublishToPubSub() { return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1992,6 +2276,8 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu return getPublishToPubSubFieldBuilder().getBuilder(); } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1999,7 +2285,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 { @@ -2010,6 +2297,8 @@ public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToP } } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2017,32 +2306,45 @@ 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()); action_ = null; } actionCase_ = 6; - onChanged();; + onChanged(); + ; return publishToPubSubBuilder_; } 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 @@ -2050,11 +2352,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 @@ -2072,13 +2378,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(); @@ -2092,11 +2402,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) { @@ -2110,18 +2423,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; } @@ -2137,11 +2459,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) { @@ -2160,24 +2485,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 { @@ -2188,39 +2521,56 @@ 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()); action_ = null; } actionCase_ = 9; - onChanged();; + onChanged(); + ; return removeFromFolderActionBuilder_; } 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 @@ -2228,11 +2578,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 @@ -2250,13 +2604,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(); @@ -2270,11 +2628,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) { @@ -2288,18 +2649,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; } @@ -2315,11 +2684,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) { @@ -2338,24 +2710,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 { @@ -2366,33 +2746,42 @@ 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()); action_ = null; } actionCase_ = 10; - onChanged();; + 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); } @@ -2402,12 +2791,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(); } @@ -2416,27 +2805,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; @@ -2451,6 +2840,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 70% 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 c509a8c166e4..a78ce70d5eec 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List ruleActionsPairs_; /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -58,10 +79,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.
    * 
@@ -69,11 +93,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.
    * 
@@ -85,6 +111,8 @@ public int getRuleActionsPairsCount() { return ruleActionsPairs_.size(); } /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -96,6 +124,8 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs( return ruleActionsPairs_.get(index); } /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -109,6 +139,7 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +151,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)); } @@ -135,8 +165,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; @@ -146,15 +175,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; } @@ -176,129 +205,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(); @@ -313,9 +349,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 @@ -334,7 +370,8 @@ 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); int from_bitField0_ = bitField0_; if (ruleActionsPairsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +390,39 @@ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput 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.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; @@ -392,7 +430,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()) { @@ -411,9 +450,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_); } @@ -445,25 +485,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) { @@ -473,28 +515,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 { @@ -502,11 +555,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) { @@ -516,11 +572,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) { @@ -530,11 +589,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) { @@ -551,11 +613,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) { @@ -569,11 +634,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) { @@ -589,11 +657,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) { @@ -610,11 +681,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) { @@ -628,11 +702,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) { @@ -646,18 +723,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); @@ -665,11 +744,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) { @@ -682,11 +764,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) { @@ -699,39 +784,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 { @@ -739,45 +834,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(), @@ -786,9 +898,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); } @@ -798,12 +910,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(); } @@ -812,27 +924,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; @@ -847,6 +959,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..6da3d2c540f5 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 25d46faf9c1f..4acbd64d487b 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); public 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 68% 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 f22cbfa6e589..1841ded02cff 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,43 +45,45 @@ private ActionOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ActionOutput(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 { - /** - * UNKNOWN = 0; - */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** UNKNOWN = 0; */ UNKNOWN(0), /** + * + * *
      * State indicating action executed successfully.
      * 
@@ -72,6 +92,8 @@ public enum State */ ACTION_SUCCEEDED(1), /** + * + * *
      * State indicating action failed.
      * 
@@ -80,6 +102,8 @@ public enum State */ ACTION_FAILED(2), /** + * + * *
      * State indicating action timed out.
      * 
@@ -88,6 +112,8 @@ public enum State */ ACTION_TIMED_OUT(3), /** + * + * *
      * State indicating action is pending.
      * 
@@ -98,11 +124,11 @@ public enum State UNRECOGNIZED(-1), ; - /** - * UNKNOWN = 0; - */ + /** UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * State indicating action executed successfully.
      * 
@@ -111,6 +137,8 @@ public enum State */ public static final int ACTION_SUCCEEDED_VALUE = 1; /** + * + * *
      * State indicating action failed.
      * 
@@ -119,6 +147,8 @@ public enum State */ public static final int ACTION_FAILED_VALUE = 2; /** + * + * *
      * State indicating action timed out.
      * 
@@ -127,6 +157,8 @@ public enum State */ public static final int ACTION_TIMED_OUT_VALUE = 3; /** + * + * *
      * State indicating action is pending.
      * 
@@ -135,7 +167,6 @@ public enum State */ public static final int ACTION_PENDING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -160,51 +191,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; @@ -224,11 +259,14 @@ private State(int value) { public static final int ACTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object actionId_; /** + * + * *
    * ID of the action.
    * 
* * string action_id = 1; + * * @return The actionId. */ @java.lang.Override @@ -237,29 +275,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 { @@ -270,38 +308,52 @@ public java.lang.String getActionId() { public static final int ACTION_STATE_FIELD_NUMBER = 2; private int actionState_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = com.google.cloud.contentwarehouse.v1.ActionOutput.State.valueOf(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.valueOf(actionState_); + return result == null + ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED + : result; } public static final int OUTPUT_MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object outputMessage_; /** + * + * *
    * Action execution output message.
    * 
* * string output_message = 3; + * * @return The outputMessage. */ @java.lang.Override @@ -310,29 +362,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 { @@ -341,6 +393,7 @@ public java.lang.String getOutputMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,12 +405,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_)) { @@ -375,9 +428,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_); @@ -390,18 +443,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; } @@ -425,129 +477,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(); @@ -561,9 +619,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 @@ -582,7 +640,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); + com.google.cloud.contentwarehouse.v1.ActionOutput result = + new com.google.cloud.contentwarehouse.v1.ActionOutput(this); result.actionId_ = actionId_; result.actionState_ = actionState_; result.outputMessage_ = outputMessage_; @@ -594,38 +653,39 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput 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.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; @@ -633,7 +693,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_; onChanged(); @@ -671,27 +732,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - actionId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - actionState_ = input.readEnum(); - - break; - } // case 16 - case 26: { - outputMessage_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + actionId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + actionState_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + outputMessage_ = input.readStringRequireUtf8(); + + 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) { @@ -704,18 +769,20 @@ public Builder mergeFrom( 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; @@ -724,20 +791,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 { @@ -745,54 +813,61 @@ 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) { + public Builder setActionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionId_ = value; onChanged(); return this; } /** + * + * *
      * ID of the action.
      * 
* * string action_id = 1; + * * @return This builder for chaining. */ public Builder clearActionId() { - + actionId_ = getDefaultInstance().getActionId(); onChanged(); 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) { + public Builder setActionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionId_ = value; onChanged(); return this; @@ -800,51 +875,67 @@ 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. */ public Builder setActionStateValue(int value) { - + actionState_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = com.google.cloud.contentwarehouse.v1.ActionOutput.State.valueOf(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.valueOf(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. */ @@ -852,21 +943,24 @@ public Builder setActionState(com.google.cloud.contentwarehouse.v1.ActionOutput. if (value == null) { throw new NullPointerException(); } - + actionState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return This builder for chaining. */ public Builder clearActionState() { - + actionState_ = 0; onChanged(); return this; @@ -874,18 +968,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; @@ -894,20 +990,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 { @@ -915,61 +1012,68 @@ 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) { + public Builder setOutputMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputMessage_ = value; onChanged(); return this; } /** + * + * *
      * Action execution output message.
      * 
* * string output_message = 3; + * * @return This builder for chaining. */ public Builder clearOutputMessage() { - + outputMessage_ = getDefaultInstance().getOutputMessage(); onChanged(); 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) { + public Builder setOutputMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputMessage_ = 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); } @@ -979,12 +1083,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(); } @@ -993,27 +1097,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; @@ -1028,6 +1132,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..d3be73972ce0 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 f33cd000b429..0620292bd4c5 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AddToFolderAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private com.google.protobuf.LazyStringList folders_; /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -58,13 +79,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:
@@ -72,12 +95,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:
@@ -85,6 +111,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. */ @@ -92,6 +119,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:
@@ -99,15 +128,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; @@ -119,8 +149,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)); } @@ -149,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -179,129 +208,136 @@ 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(); @@ -311,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_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 @@ -332,7 +368,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); + com.google.cloud.contentwarehouse.v1.AddToFolderAction result = + new com.google.cloud.contentwarehouse.v1.AddToFolderAction(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { folders_ = folders_.getUnmodifiableView(); @@ -347,38 +384,39 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction 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.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; @@ -386,7 +424,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_; @@ -423,18 +462,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) { @@ -444,16 +485,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList folders_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList folders_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -461,13 +507,15 @@ 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() { return folders_.getUnmodifiableView(); } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -475,12 +523,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:
@@ -488,6 +539,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. */ @@ -495,6 +547,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:
@@ -502,14 +556,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:
@@ -517,21 +573,23 @@ 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) { + public Builder setFolders(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -539,20 +597,22 @@ 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) { + public Builder addFolders(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -560,18 +620,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -579,6 +640,7 @@ public Builder addAllFolders(
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearFolders() { @@ -588,6 +650,8 @@ public Builder clearFolders() { return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -595,23 +659,23 @@ 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) { + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -621,12 +685,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(); } @@ -635,27 +699,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; @@ -670,6 +734,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..b9e79c06472c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..17e08941c7ba --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java @@ -0,0 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\234\001\n$com.google.cloud.c" + + "ontentwarehouse.v1B AsyncDocumentService" + + "RequestProtoP\001ZPgoogle.golang.org/genpro" + + "to/googleapis/cloud/contentwarehouse/v1;" + + "contentwarehouseb\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 525c3b887abb..1d8856cb5d1b 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,72 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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_; /** + * + * *
    * Whether to convert all the entities to properties.
    * 
* * bool enable_entities_conversions = 1; + * * @return The enableEntitiesConversions. */ @java.lang.Override @@ -75,21 +95,23 @@ 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, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> customizedEntitiesPropertiesConversions_; + 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, + ""); + } + + private com.google.protobuf.MapField + customizedEntitiesPropertiesConversions_; + private com.google.protobuf.MapField - internalGetCustomizedEntitiesPropertiesConversions() { + internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); @@ -101,28 +123,31 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
* * 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.
    * 
@@ -130,11 +155,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.
    * 
@@ -142,16 +169,18 @@ public java.util.Map getCustomizedEntitiesPr * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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.
    * 
@@ -159,10 +188,10 @@ public 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)) { @@ -172,6 +201,7 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,13 +213,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, @@ -204,18 +232,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; @@ -225,17 +255,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; } @@ -248,8 +278,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(); @@ -260,151 +289,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(); @@ -415,9 +449,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 @@ -436,10 +470,12 @@ 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); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption result = + new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(this); int from_bitField0_ = bitField0_; result.enableEntitiesConversions_ = enableEntitiesConversions_; - result.customizedEntitiesPropertiesConversions_ = internalGetCustomizedEntitiesPropertiesConversions(); + result.customizedEntitiesPropertiesConversions_ = + internalGetCustomizedEntitiesPropertiesConversions(); result.customizedEntitiesPropertiesConversions_.makeImmutable(); onBuilt(); return result; @@ -449,38 +485,39 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption 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.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; @@ -488,12 +525,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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -520,25 +558,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableEntitiesConversions_ = input.readBool(); - - break; - } // case 8 - case 18: { - com.google.protobuf.MapEntry - customizedEntitiesPropertiesConversions__ = input.readMessage( - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put( - customizedEntitiesPropertiesConversions__.getKey(), customizedEntitiesPropertiesConversions__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableEntitiesConversions_ = input.readBool(); + + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry + customizedEntitiesPropertiesConversions__ = + input.readMessage( + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableCustomizedEntitiesPropertiesConversions() + .getMutableMap() + .put( + customizedEntitiesPropertiesConversions__.getKey(), + customizedEntitiesPropertiesConversions__.getValue()); + 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,15 +595,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 @@ -564,51 +615,61 @@ 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. */ public Builder setEnableEntitiesConversions(boolean value) { - + enableEntitiesConversions_ = value; onChanged(); return this; } /** + * + * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; + * * @return This builder for chaining. */ public Builder clearEnableEntitiesConversions() { - + enableEntitiesConversions_ = false; onChanged(); return this; } - 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_; } + private com.google.protobuf.MapField - internalGetMutableCustomizedEntitiesPropertiesConversions() { - onChanged();; + internalGetMutableCustomizedEntitiesPropertiesConversions() { + onChanged(); + ; 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(); @@ -620,28 +681,31 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
* * 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.
      * 
@@ -649,11 +713,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.
      * 
@@ -661,16 +727,18 @@ public java.util.Map getCustomizedEntitiesPr * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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.
      * 
@@ -678,10 +746,11 @@ public 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"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); if (!map.containsKey(key)) { @@ -691,34 +760,34 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( } public Builder clearCustomizedEntitiesPropertiesConversions() { - 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() { + getMutableCustomizedEntitiesPropertiesConversions() { return internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap(); } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -726,34 +795,34 @@ 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"); } + java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() - .put(key, value); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put(key, value); return this; } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - public Builder putAllCustomizedEntitiesPropertiesConversions( java.util.Map values) { - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() - .putAll(values); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -763,12 +832,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(); } @@ -777,27 +846,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; @@ -812,6 +881,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 654cde4be2a6..c4f6e40fbfcd 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * 
@@ -58,18 +80,18 @@ boolean containsCustomizedEntitiesPropertiesConversions( */ /* 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..7bee0a98a3d0 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java @@ -0,0 +1,155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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*\336" + + "\001\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*O\n\014DatabaseType\022" + + "\016\n\nDB_UNKNOWN\020\000\022\024\n\020DB_INFRA_SPANNER\020\001\022\031\n" + + "\025DB_CLOUD_SQL_POSTGRES\020\002*\252\001\n\021AccessContr" + + "olMode\022\024\n\020ACL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE" + + "_UNIVERSAL_ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT" + + "_LEVEL_ACCESS_CONTROL_BYOID\020\002\022.\n*ACL_MOD" + + "E_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI\020\003B\335\001" + + "\n$com.google.cloud.contentwarehouse.v1B\013" + + "CommonProtoP\001ZPgoogle.golang.org/genprot" + + "o/googleapis/cloud/contentwarehouse/v1;c" + + "ontentwarehouse\352AS\n(contentwarehouse.goo" + + "gleapis.com/Location\022\'projects/{project}" + + "/locations/{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/CreateDocumentLinkRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.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/CreateDocumentLinkRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java index 6f8fbc4a6c71..1aa039f55252 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -58,7 +79,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 @@ -67,14 +91,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.
@@ -82,17 +107,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 { @@ -103,11 +129,16 @@ 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 @@ -115,23 +146,34 @@ 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() { @@ -141,12 +183,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin 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 @@ -154,19 +199,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.
@@ -175,11 +227,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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,8 +245,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_);
     }
@@ -215,12 +268,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;
@@ -230,24 +281,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;
@@ -276,129 +325,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(); @@ -420,13 +476,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(); } @@ -441,7 +498,8 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest(this); result.parent_ = parent_; if (documentLinkBuilder_ == null) { result.documentLink_ = documentLink_; @@ -461,38 +519,39 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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; @@ -500,7 +559,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_; onChanged(); @@ -537,31 +598,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentLinkFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getDocumentLinkFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,6 +635,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -581,14 +644,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; @@ -597,6 +662,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -604,16 +671,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 { @@ -621,6 +689,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -628,21 +698,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -650,16 +724,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -667,17 +746,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -685,39 +766,58 @@ 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 documentLinkBuilder_ != null || 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. */ 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) { @@ -733,11 +833,15 @@ 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) { @@ -751,17 +855,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 (documentLink_ != null) { documentLink_ = - com.google.cloud.contentwarehouse.v1.DocumentLink.newBuilder(documentLink_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentLink.newBuilder(documentLink_) + .mergeFrom(value) + .buildPartial(); } else { documentLink_ = value; } @@ -773,11 +883,15 @@ 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() { if (documentLinkBuilder_ == null) { @@ -791,48 +905,64 @@ 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() { - + onChanged(); 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_; @@ -840,36 +970,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -891,6 +1034,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.
@@ -910,6 +1055,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -917,11 +1064,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -933,6 +1083,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.
@@ -952,6 +1104,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -959,12 +1113,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -972,15 +1129,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.
@@ -989,21 +1150,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);
     }
 
@@ -1013,41 +1177,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;
@@ -1059,9 +1225,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 fc6ea8d4345d..f671be5dfc96 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,60 +50,84 @@ 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 5d7837e96dd9..48045be390d6 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,53 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +258,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 @@ -253,7 +279,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; } @@ -262,38 +289,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; @@ -301,7 +329,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; @@ -328,12 +357,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) { @@ -343,9 +373,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); } @@ -355,12 +385,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(); } @@ -369,27 +399,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; @@ -404,6 +434,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..a7fe4c4daba5 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 6232aaaf99de..5783534a0970 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,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -65,30 +89,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 { @@ -99,11 +125,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 @@ -111,23 +142,34 @@ 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() { @@ -137,12 +179,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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 @@ -150,19 +195,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.
@@ -171,19 +223,23 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   public static final int POLICY_FIELD_NUMBER = 4;
   private com.google.iam.v1.Policy policy_;
   /**
+   *
+   *
    * 
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -191,12 +247,15 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ @java.lang.Override @@ -204,6 +263,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
@@ -219,11 +280,15 @@ 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 CW Document.
    * 
* - * .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 @@ -231,32 +296,44 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** + * + * *
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder() { return getCloudAiDocumentOption(); } 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.
@@ -266,6 +343,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 @@ -273,6 +351,8 @@ public boolean hasCreateMask() { return createMask_ != null; } /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -282,6 +362,7 @@ public boolean hasCreateMask() {
    * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return The createMask. */ @java.lang.Override @@ -289,6 +370,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.
@@ -305,6 +388,7 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -316,8 +400,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_);
     }
@@ -349,24 +432,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;
@@ -376,39 +455,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;
@@ -449,129 +523,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(); @@ -611,9 +692,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 @@ -632,7 +713,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); + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest(this); result.parent_ = parent_; if (documentBuilder_ == null) { result.document_ = document_; @@ -667,38 +749,39 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest 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.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; @@ -706,7 +789,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_; onChanged(); @@ -752,52 +836,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getCreateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getCreateMaskFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -810,19 +892,23 @@ public Builder mergeFrom( 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; @@ -831,21 +917,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 { @@ -853,57 +942,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -911,39 +1013,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 documentBuilder_ != null || 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. */ 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) { @@ -959,11 +1080,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) { @@ -977,17 +1102,23 @@ 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 (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) + .mergeFrom(value) + .buildPartial(); } else { document_ = value; } @@ -999,11 +1130,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() { if (documentBuilder_ == null) { @@ -1017,48 +1152,64 @@ 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() { - + onChanged(); 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_; @@ -1066,36 +1217,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1117,6 +1281,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.
@@ -1136,6 +1302,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1143,11 +1311,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1159,6 +1330,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.
@@ -1178,6 +1351,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1185,12 +1360,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1198,15 +1376,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.
@@ -1215,14 +1397,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_;
@@ -1230,26 +1415,35 @@ 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. Conditions defined in the policy
      * will be ignored.
      * 
* * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
      * 
* * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -1260,6 +1454,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1281,6 +1477,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1288,8 +1486,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();
         onChanged();
@@ -1300,6 +1497,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1310,8 +1509,7 @@ public Builder setPolicy(
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
         if (policy_ != null) {
-          policy_ =
-            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
         } else {
           policy_ = value;
         }
@@ -1323,6 +1521,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1342,6 +1542,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1350,11 +1552,13 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 4;
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-      
+
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation. Conditions defined in the policy
      * will be ignored.
@@ -1366,11 +1570,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. Conditions defined in the policy
      * will be ignored.
@@ -1379,14 +1584,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_;
@@ -1394,41 +1601,58 @@ 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 CW Document.
      * 
* - * .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 cloudAiDocumentOptionBuilder_ != null || cloudAiDocumentOption_ != null; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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(); @@ -1442,11 +1666,14 @@ public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.Clo return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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) { @@ -1460,17 +1687,24 @@ public Builder setCloudAiDocumentOption( return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 (cloudAiDocumentOption_ != null) { cloudAiDocumentOption_ = - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder(cloudAiDocumentOption_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder( + cloudAiDocumentOption_) + .mergeFrom(value) + .buildPartial(); } else { cloudAiDocumentOption_ = value; } @@ -1482,11 +1716,14 @@ public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.C return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ public Builder clearCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { @@ -1500,48 +1737,63 @@ public Builder clearCloudAiDocumentOption() { return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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() { + onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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_; @@ -1549,8 +1801,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.
@@ -1560,12 +1817,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 createMaskBuilder_ != null || createMask_ != null; } /** + * + * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1575,16 +1835,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.
@@ -1609,6 +1874,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.
@@ -1619,8 +1886,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();
         onChanged();
@@ -1631,6 +1897,8 @@ public Builder setCreateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1645,7 +1913,7 @@ public Builder mergeCreateMask(com.google.protobuf.FieldMask value) {
       if (createMaskBuilder_ == null) {
         if (createMask_ != null) {
           createMask_ =
-            com.google.protobuf.FieldMask.newBuilder(createMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(createMask_).mergeFrom(value).buildPartial();
         } else {
           createMask_ = value;
         }
@@ -1657,6 +1925,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.
@@ -1679,6 +1949,8 @@ public Builder clearCreateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1690,11 +1962,13 @@ public Builder clearCreateMask() {
      * .google.protobuf.FieldMask create_mask = 6;
      */
     public com.google.protobuf.FieldMask.Builder getCreateMaskBuilder() {
-      
+
       onChanged();
       return getCreateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1709,11 +1983,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.
@@ -1725,21 +2002,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);
     }
 
@@ -1749,12 +2029,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();
   }
@@ -1763,27 +2043,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;
@@ -1798,6 +2078,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 73%
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 c6188f7f6536..86ca8b3afb62 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,26 +134,34 @@ public interface CreateDocumentRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * Default document policy during creation. Conditions defined in the policy
    * will be ignored.
@@ -117,33 +172,47 @@ public interface CreateDocumentRequestOrBuilder extends
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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.
@@ -153,10 +222,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.
@@ -166,10 +238,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 71%
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 dbdf5d48782c..92885d334070 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,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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() { - } + + private CreateDocumentResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDocumentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -62,18 +83,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.
    * 
@@ -88,6 +116,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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.
@@ -95,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 @@ -102,6 +133,8 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -109,13 +142,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.
@@ -125,19 +163,23 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
+      getRuleEngineOutputOrBuilder() {
     return getRuleEngineOutput();
   }
 
   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 @@ -145,19 +187,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.
@@ -171,6 +220,7 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   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 (document_ != null) {
       output.writeMessage(1, getDocument());
     }
@@ -203,16 +252,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;
@@ -222,27 +268,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -273,129 +317,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(); @@ -421,9 +472,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 @@ -442,7 +493,8 @@ 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); if (documentBuilder_ == null) { result.document_ = document_; } else { @@ -466,38 +518,39 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.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; @@ -505,7 +558,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()); } @@ -541,33 +595,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,34 +633,47 @@ public Builder mergeFrom( 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 documentBuilder_ != null || document_ != null; } /** + * + * *
      * 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.
      * 
@@ -628,6 +694,8 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -646,6 +714,8 @@ public Builder setDocument( return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -656,7 +726,9 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) + .mergeFrom(value) + .buildPartial(); } else { document_ = value; } @@ -668,6 +740,8 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -686,6 +760,8 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -693,11 +769,13 @@ public Builder clearDocument() { * .google.cloud.contentwarehouse.v1.Document document = 1; */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Document created after executing create request.
      * 
@@ -708,11 +786,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.
      * 
@@ -720,14 +801,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_; @@ -735,8 +819,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.
@@ -744,12 +833,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 ruleEngineOutputBuilder_ != null || ruleEngineOutput_ != null; } /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -757,16 +849,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.
@@ -775,7 +872,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();
@@ -789,6 +887,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.
@@ -809,6 +909,8 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -817,11 +919,14 @@ 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 (ruleEngineOutput_ != null) {
           ruleEngineOutput_ =
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           ruleEngineOutput_ = value;
         }
@@ -833,6 +938,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.
@@ -853,6 +960,8 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -861,12 +970,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() {
+
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -875,15 +987,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.
@@ -893,14 +1009,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_;
@@ -908,36 +1027,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 metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * 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.
@@ -959,6 +1091,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -978,6 +1112,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -989,7 +1125,9 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1001,6 +1139,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1020,6 +1160,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1028,11 +1170,13 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1044,11 +1188,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.
@@ -1057,21 +1204,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);
     }
 
@@ -1081,12 +1231,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();
   }
@@ -1095,27 +1245,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;
@@ -1130,6 +1280,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 80%
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 12bd4f4533db..f2c6d79ba68d 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -42,10 +68,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.
@@ -53,10 +82,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.
@@ -68,26 +100,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.
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 60%
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 56fa4b55252a..decc192f3435 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,61 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -64,29 +88,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 { @@ -97,11 +123,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 @@ -109,23 +140,34 @@ 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() { @@ -133,6 +175,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +187,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_); } @@ -165,8 +207,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; @@ -176,19 +217,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; @@ -213,129 +253,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(); @@ -351,13 +398,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(); } @@ -372,7 +420,8 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(this); result.parent_ = parent_; if (documentSchemaBuilder_ == null) { result.documentSchema_ = documentSchema_; @@ -387,46 +436,50 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); @@ -460,24 +513,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentSchemaFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -490,18 +544,22 @@ public Builder mergeFrom( 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; @@ -510,20 +568,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 { @@ -531,54 +592,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -586,39 +660,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 documentSchemaBuilder_ != null || 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. */ 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) { @@ -634,11 +727,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) { @@ -652,17 +749,23 @@ 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 (documentSchema_ != null) { documentSchema_ = - com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_) + .mergeFrom(value) + .buildPartial(); } else { documentSchema_ = value; } @@ -674,11 +777,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() { if (documentSchemaBuilder_ == null) { @@ -692,55 +799,72 @@ 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() { - + onChanged(); 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); } @@ -750,41 +874,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; @@ -796,9 +922,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..d2206ac27865 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 327ae15557e8..0d67d6700d14 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,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -65,30 +89,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 { @@ -99,11 +125,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 @@ -111,23 +142,34 @@ 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() { @@ -135,6 +177,7 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +189,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_); } @@ -167,8 +209,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; @@ -178,19 +219,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; @@ -215,129 +255,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(); @@ -353,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_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 @@ -374,7 +421,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); + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(this); result.parent_ = parent_; if (ruleSetBuilder_ == null) { result.ruleSet_ = ruleSet_; @@ -389,38 +437,39 @@ public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest 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.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; @@ -428,7 +477,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_; onChanged(); @@ -462,24 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRuleSetFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); + + 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,19 +543,23 @@ public Builder mergeFrom( 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; @@ -513,21 +568,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 { @@ -535,57 +593,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -593,39 +664,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 ruleSetBuilder_ != null || 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. */ 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) { @@ -641,11 +731,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) { @@ -659,17 +753,23 @@ 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 (ruleSet_ != null) { ruleSet_ = - com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_) + .mergeFrom(value) + .buildPartial(); } else { ruleSet_ = value; } @@ -681,11 +781,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() { if (ruleSetBuilder_ == null) { @@ -699,55 +803,71 @@ 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() { - + onChanged(); 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); } @@ -757,12 +877,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(); } @@ -771,27 +891,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; @@ -806,6 +926,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..3ac8e8bbaa0d --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 61% 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 969b52d188a2..347f06c9fef5 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,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -65,30 +89,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 { @@ -99,11 +125,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 @@ -111,23 +142,34 @@ 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() { @@ -135,6 +177,7 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +189,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_); } @@ -167,8 +209,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; @@ -178,19 +219,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; @@ -215,129 +255,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(); @@ -353,13 +400,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(); } @@ -374,7 +422,8 @@ 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); + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result = + new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(this); result.parent_ = parent_; if (synonymSetBuilder_ == null) { result.synonymSet_ = synonymSet_; @@ -389,38 +438,39 @@ public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest 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.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; @@ -428,7 +478,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_; onChanged(); @@ -462,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getSynonymSetFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getSynonymSetFieldBuilder().getBuilder(), extensionRegistry); + + 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,19 +545,23 @@ public Builder mergeFrom( 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; @@ -513,21 +570,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 { @@ -535,57 +595,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -593,39 +666,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 synonymSetBuilder_ != null || 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. */ 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) { @@ -641,11 +733,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) { @@ -659,17 +755,23 @@ 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 (synonymSet_ != null) { synonymSet_ = - com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_) + .mergeFrom(value) + .buildPartial(); } else { synonymSet_ = value; } @@ -681,11 +783,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() { if (synonymSetBuilder_ == null) { @@ -699,55 +805,71 @@ 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() { - + onChanged(); 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); } @@ -757,12 +879,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(); } @@ -771,27 +894,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; @@ -806,6 +929,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..381a6c44293a --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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/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 e21ed5c55e76..92d88c7c0be6 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,83 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> entries_; - private com.google.protobuf.MapField - internalGetEntries() { + 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, + ""); + } + + 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_; } @@ -86,6 +102,8 @@ 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.
@@ -96,22 +114,22 @@ 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.
@@ -123,11 +141,12 @@ public java.util.Map getEntries() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-
   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.
@@ -139,16 +158,16 @@ public java.util.Map getEntriesMap() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getEntriesOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetEntries().getMap();
+  public java.lang.String getEntriesOrDefault(java.lang.String key, 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.
@@ -160,12 +179,11 @@ public 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();
     }
@@ -173,6 +191,7 @@ public java.lang.String getEntriesOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,14 +203,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);
   }
 
@@ -201,15 +215,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;
@@ -219,15 +233,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;
   }
@@ -249,151 +263,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(); @@ -402,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 @@ -423,7 +442,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); + com.google.cloud.contentwarehouse.v1.DataUpdateAction result = + new com.google.cloud.contentwarehouse.v1.DataUpdateAction(this); int from_bitField0_ = bitField0_; result.entries_ = internalGetEntries(); result.entries_.makeImmutable(); @@ -435,38 +455,39 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction 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.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; @@ -474,9 +495,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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -503,20 +524,24 @@ 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()); - 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()); + 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) { @@ -526,24 +551,24 @@ 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() { - onChanged();; + internalGetMutableEntries() { + onChanged(); + ; 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,6 +580,8 @@ 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.
@@ -565,22 +592,22 @@ 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.
@@ -592,11 +619,12 @@ public java.util.Map getEntries() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-
     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.
@@ -608,16 +636,17 @@ public java.util.Map getEntriesMap() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-
     public java.lang.String getEntriesOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEntries().getMap();
+        java.lang.String key, 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.
@@ -629,12 +658,11 @@ public 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();
       }
@@ -642,11 +670,12 @@ public java.lang.String getEntriesOrThrow(
     }
 
     public Builder clearEntries() {
-      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.
@@ -657,23 +686,21 @@ 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() {
       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.
@@ -684,19 +711,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"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableEntries().getMutableMap()
-          .put(key, value);
+      internalGetMutableEntries().getMutableMap().put(key, value);
       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 +735,13 @@ 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);
       return this;
     }
+
     @java.lang.Override
-    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 +751,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 +765,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 +800,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 850f4f301e37..e6705b217c5f 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -64,11 +83,13 @@ boolean containsEntries(
    */
 
   /* 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.
@@ -79,7 +100,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 61%
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 2e4778db79ce..d4b9ae2cab97 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,83 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> conditions_; - private com.google.protobuf.MapField - internalGetConditions() { + 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, + ""); + } + + 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_; } @@ -86,6 +102,8 @@ 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
@@ -94,22 +112,22 @@ 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
@@ -119,11 +137,12 @@ public java.util.Map getConditions() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-
   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
@@ -133,16 +152,17 @@ public java.util.Map getConditionsMap() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-
   public java.lang.String getConditionsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetConditions().getMap();
+      java.lang.String key, 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
@@ -152,12 +172,11 @@ public 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();
     }
@@ -165,6 +184,7 @@ public java.lang.String getConditionsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -176,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,
-        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);
   }
 
@@ -193,15 +208,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;
@@ -211,15 +226,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;
   }
@@ -241,151 +256,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(); @@ -394,9 +414,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 @@ -415,7 +435,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); + com.google.cloud.contentwarehouse.v1.DataValidationAction result = + new com.google.cloud.contentwarehouse.v1.DataValidationAction(this); int from_bitField0_ = bitField0_; result.conditions_ = internalGetConditions(); result.conditions_.makeImmutable(); @@ -427,38 +448,39 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction 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.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; @@ -466,9 +488,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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -495,20 +517,24 @@ 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()); - 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()); + 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,24 +544,27 @@ 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() { + internalGetConditions() { if (conditions_ == null) { return com.google.protobuf.MapField.emptyMapField( ConditionsDefaultEntryHolder.defaultEntry); } return conditions_; } + private com.google.protobuf.MapField - internalGetMutableConditions() { - onChanged();; + internalGetMutableConditions() { + onChanged(); + ; 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,6 +576,8 @@ 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
@@ -555,22 +586,22 @@ 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
@@ -580,11 +611,12 @@ public java.util.Map getConditions() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-
     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
@@ -594,16 +626,17 @@ public java.util.Map getConditionsMap() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-
     public java.lang.String getConditionsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetConditions().getMap();
+        java.lang.String key, 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
@@ -613,12 +646,11 @@ public 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();
       }
@@ -626,11 +658,12 @@ public java.lang.String getConditionsOrThrow(
     }
 
     public Builder clearConditions() {
-      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
@@ -639,23 +672,21 @@ 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() {
       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
@@ -664,19 +695,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"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableConditions().getMutableMap()
-          .put(key, value);
+      internalGetMutableConditions().getMutableMap().put(key, value);
       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 +717,13 @@ 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);
       return this;
     }
+
     @java.lang.Override
-    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 +733,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 +747,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 +782,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 a710c49c7adb..8dd962adbe6f 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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
@@ -56,11 +75,13 @@ boolean containsConditions(
    */
 
   /* 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
@@ -69,7 +90,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 4beeb8d56e40..b456985a2b3e 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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
    * 
@@ -40,6 +62,8 @@ public enum DatabaseType ; /** + * + * *
    * This value is required by protobuf best practices
    * 
@@ -48,6 +72,8 @@ public enum DatabaseType */ public static final int DB_UNKNOWN_VALUE = 0; /** + * + * *
    * Internal Spanner
    * 
@@ -56,6 +82,8 @@ public enum DatabaseType */ public static final int DB_INFRA_SPANNER_VALUE = 1; /** + * + * *
    * Cloud Sql with a Postgres Sql instance
    * 
@@ -64,7 +92,6 @@ public enum DatabaseType */ public static final int DB_CLOUD_SQL_POSTGRES_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,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; @@ -147,4 +174,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 e5c558520f70..b35a2c4e1cb5 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List values_; /** + * + * *
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -63,6 +84,8 @@ public java.util.List getValuesList() {
     return values_;
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -71,11 +94,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.
@@ -88,6 +112,8 @@ public int getValuesCount() {
     return values_.size();
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -100,6 +126,8 @@ public com.google.type.DateTime getValues(int index) {
     return values_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -108,12 +136,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;
@@ -125,8 +153,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));
     }
@@ -140,8 +167,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;
@@ -151,15 +177,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;
   }
@@ -181,129 +207,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(); @@ -318,9 +350,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 @@ -339,7 +371,8 @@ 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); int from_bitField0_ = bitField0_; if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -358,38 +391,39 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray 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.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; @@ -397,7 +431,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()) { @@ -416,9 +451,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_); } @@ -450,25 +486,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) { @@ -478,21 +514,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.
@@ -508,6 +550,8 @@ public java.util.List getValuesList() {
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -523,6 +567,8 @@ public int getValuesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -538,6 +584,8 @@ public com.google.type.DateTime getValues(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -545,8 +593,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();
@@ -560,6 +607,8 @@ public Builder setValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -567,8 +616,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());
@@ -579,6 +627,8 @@ public Builder setValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -600,6 +650,8 @@ public Builder addValues(com.google.type.DateTime value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -607,8 +659,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();
@@ -622,6 +673,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -629,8 +682,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());
@@ -641,6 +693,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -648,8 +702,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());
@@ -660,6 +713,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -667,12 +722,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);
@@ -680,6 +733,8 @@ public Builder addAllValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -698,6 +753,8 @@ public Builder clearValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -716,6 +773,8 @@ public Builder removeValues(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -723,11 +782,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.
@@ -735,14 +795,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.
@@ -750,8 +812,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 {
@@ -759,6 +820,8 @@ public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -767,10 +830,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.
@@ -778,12 +842,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.
@@ -791,27 +856,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);
     }
 
@@ -821,12 +888,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();
   }
@@ -835,27 +902,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;
@@ -870,6 +937,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..e6e0f797a2c1 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 3879feac4683..a8e4ebdf463b 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,53 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +258,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 @@ -253,7 +279,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; } @@ -262,38 +289,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; @@ -301,7 +329,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; @@ -328,12 +357,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) { @@ -343,9 +373,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); } @@ -355,12 +385,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(); } @@ -369,27 +399,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; @@ -404,6 +434,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..2dd724c06904 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 bb38c5fdcf4a..844e4369cd8b 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,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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_; /** + * + * *
    * 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 @@ -64,6 +85,7 @@ public boolean getEnableHardDelete() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +97,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_); } @@ -90,8 +111,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; @@ -101,15 +121,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; } @@ -122,137 +142,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(); @@ -262,9 +288,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 @@ -283,7 +309,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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(this); result.enableHardDelete_ = enableHardDelete_; onBuilt(); return result; @@ -293,38 +320,39 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction 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.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; @@ -332,7 +360,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()); } @@ -362,17 +391,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableHardDelete_ = input.readBool(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableHardDelete_ = input.readBool(); + + 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) { @@ -383,14 +414,17 @@ public Builder mergeFrom( return this; } - 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 @@ -398,39 +432,45 @@ 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. */ public Builder setEnableHardDelete(boolean value) { - + enableHardDelete_ = value; onChanged(); 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() { - + enableHardDelete_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -440,12 +480,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(); } @@ -454,27 +494,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; @@ -489,6 +529,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..06e924521eb3 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 67% 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 3774fd7e95e6..927481658f8d 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,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -101,12 +127,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 @@ -114,19 +143,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.
@@ -135,11 +171,13 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,8 +189,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 +209,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 +219,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;
@@ -220,129 +255,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(); @@ -358,13 +400,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(); } @@ -379,7 +422,8 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest(this); result.name_ = name_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -394,38 +438,39 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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; @@ -433,7 +478,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_; onChanged(); @@ -467,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + 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,20 +545,24 @@ public Builder mergeFrom( 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; @@ -519,22 +571,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 { @@ -542,60 +597,73 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -603,36 +671,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -654,6 +735,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.
@@ -673,6 +756,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -680,11 +765,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -696,6 +784,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.
@@ -715,6 +805,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -722,12 +814,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -735,15 +830,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.
@@ -752,21 +851,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);
     }
 
@@ -776,41 +878,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;
@@ -822,9 +926,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..eb1d19beeb15 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 68%
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 743b460162c2..ff02a8785e6d 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,56 +1,77 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the document to delete.
    * Format:
@@ -59,7 +80,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 @@ -68,14 +92,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:
@@ -84,17 +109,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 { @@ -105,12 +131,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 @@ -118,19 +147,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.
@@ -139,11 +175,13 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -155,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(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -176,8 +213,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;
@@ -187,19 +223,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;
@@ -224,129 +259,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(); @@ -362,9 +404,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 @@ -383,7 +425,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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest(this); result.name_ = name_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -398,38 +441,39 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest 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.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; @@ -437,7 +481,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_; onChanged(); @@ -471,24 +516,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + 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,6 +547,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -509,14 +557,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; @@ -525,6 +575,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -533,16 +585,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 { @@ -550,6 +603,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -558,21 +613,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -581,16 +640,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -599,17 +663,19 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -617,36 +683,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -668,6 +747,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.
@@ -687,6 +768,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -694,11 +777,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -710,6 +796,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.
@@ -729,6 +817,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -736,12 +826,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -749,15 +842,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.
@@ -766,21 +863,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);
     }
 
@@ -790,12 +890,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();
   }
@@ -804,27 +904,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;
@@ -839,6 +939,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..6cfca169c426 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 5467ea677faf..267001209a21 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,61 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -64,29 +88,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 { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,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 +157,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; } @@ -159,129 +185,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(); @@ -291,13 +324,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(); } @@ -312,7 +346,8 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,46 +357,50 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); @@ -392,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -415,18 +456,22 @@ public Builder mergeFrom( 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; @@ -435,20 +480,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 { @@ -456,61 +504,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,41 +581,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; @@ -566,9 +629,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..68baa85c8b0c --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 63% 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 0c76be1a87e8..cdca7fde2f9e 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,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,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_); } @@ -135,15 +161,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; } @@ -163,129 +189,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(); @@ -295,9 +328,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 @@ -316,7 +349,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); + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +360,39 @@ public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest 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.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; @@ -365,7 +400,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_; onChanged(); @@ -396,17 +432,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +457,24 @@ public Builder mergeFrom( 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; @@ -441,22 +483,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 { @@ -464,67 +509,80 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +592,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(); } @@ -548,27 +606,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; @@ -583,6 +641,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..6bcceb42f635 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 eeba9d0dc659..7b79cd036f4b 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,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,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_); } @@ -135,15 +161,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; } @@ -163,129 +189,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(); @@ -295,13 +328,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(); } @@ -316,7 +350,8 @@ 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); + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +361,39 @@ public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest 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.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; @@ -365,7 +401,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_; onChanged(); @@ -396,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +459,24 @@ public Builder mergeFrom( 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; @@ -441,22 +485,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 { @@ -464,67 +511,80 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +594,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(); } @@ -548,27 +609,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; @@ -583,6 +644,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..0955c099a9de --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 74% 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 70ae3fba97bd..f73c917d59f4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -35,38 +53,42 @@ private Document() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Document(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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; } @@ -82,32 +104,38 @@ 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; 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; } @@ -123,26 +151,31 @@ 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; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the document.
    * Format:
@@ -151,6 +184,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -159,14 +193,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:
@@ -175,16 +210,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 { @@ -195,11 +229,14 @@ public java.lang.String getName() { public static final int REFERENCE_ID_FIELD_NUMBER = 11; 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 @@ -208,29 +245,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,6 +278,8 @@ public java.lang.String getReferenceId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name of the document given by the user. This name will be displayed
    * in the UI.
@@ -250,6 +289,7 @@ public java.lang.String getReferenceId() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -258,14 +298,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.
@@ -275,16 +316,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 { @@ -295,6 +335,8 @@ public java.lang.String getDisplayName() { public static final int TITLE_FIELD_NUMBER = 18; private volatile java.lang.Object title_; /** + * + * *
    * Title that describes the document.
    * This is usually present in the top section of the document, and is a
@@ -302,6 +344,7 @@ public java.lang.String getDisplayName() {
    * 
* * string title = 18; + * * @return The title. */ @java.lang.Override @@ -310,14 +353,15 @@ 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 is usually present in the top section of the document, and is a
@@ -325,16 +369,15 @@ public java.lang.String getTitle() {
    * 
* * 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 { @@ -345,11 +388,14 @@ public java.lang.String getTitle() { public static final int DISPLAY_URI_FIELD_NUMBER = 17; 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 @@ -358,29 +404,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 { @@ -391,6 +437,8 @@ public java.lang.String getDisplayUri() { public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object documentSchemaName_; /** + * + * *
    * The Document schema name.
    * Format:
@@ -398,6 +446,7 @@ public java.lang.String getDisplayUri() {
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ @java.lang.Override @@ -406,14 +455,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:
@@ -421,16 +471,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 { @@ -440,22 +489,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() { @@ -466,8 +521,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; @@ -476,23 +530,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; } @@ -504,11 +559,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 @@ -516,21 +574,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.
    * 
@@ -540,7 +603,7 @@ 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(); } @@ -548,11 +611,14 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil public static final int STRUCTURED_CONTENT_URI_FIELD_NUMBER = 16; private volatile java.lang.Object structuredContentUri_; /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16; + * * @return The structuredContentUri. */ @java.lang.Override @@ -561,29 +627,29 @@ public java.lang.String getStructuredContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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; + * * @return The bytes for structuredContentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getStructuredContentUriBytes() { + 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 { @@ -593,22 +659,28 @@ public java.lang.String getStructuredContentUri() { 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() { @@ -619,8 +691,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; @@ -629,23 +700,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; } @@ -657,11 +729,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 @@ -669,11 +744,14 @@ public boolean hasInlineRawDocument() { return rawDocumentCase_ == 6; } /** + * + * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; + * * @return The inlineRawDocument. */ @java.lang.Override @@ -687,6 +765,8 @@ public com.google.protobuf.ByteString getInlineRawDocument() { public static final int PROPERTIES_FIELD_NUMBER = 7; private java.util.List properties_; /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -698,6 +778,8 @@ public java.util.List getProperti return properties_; } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -705,11 +787,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.
    * 
@@ -721,6 +805,8 @@ public int getPropertiesCount() { return properties_.size(); } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -732,6 +818,8 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -739,19 +827,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 @@ -759,11 +850,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 @@ -771,11 +866,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() { @@ -785,11 +883,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 @@ -797,11 +899,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 @@ -809,11 +915,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() { @@ -823,6 +932,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER = 10; private int 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
@@ -831,12 +942,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
@@ -845,22 +960,30 @@ 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = com.google.cloud.contentwarehouse.v1.RawDocumentFileType.valueOf(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.valueOf(rawDocumentFileType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED + : result; } public static final int ASYNC_ENABLED_FIELD_NUMBER = 12; private boolean asyncEnabled_; /** + * + * *
    * If true, makes the document visible to asynchronous policies and rules.
    * 
* * bool async_enabled = 12; + * * @return The asyncEnabled. */ @java.lang.Override @@ -871,11 +994,14 @@ public boolean getAsyncEnabled() { public static final int TEXT_EXTRACTION_DISABLED_FIELD_NUMBER = 19; private boolean textExtractionDisabled_; /** + * + * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19; + * * @return The textExtractionDisabled. */ @java.lang.Override @@ -886,11 +1012,14 @@ public boolean getTextExtractionDisabled() { public static final int CREATOR_FIELD_NUMBER = 13; private volatile java.lang.Object creator_; /** + * + * *
    * The user who creates the document.
    * 
* * string creator = 13; + * * @return The creator. */ @java.lang.Override @@ -899,29 +1028,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 { @@ -932,11 +1061,14 @@ public java.lang.String getCreator() { public static final int UPDATER_FIELD_NUMBER = 14; private volatile java.lang.Object updater_; /** + * + * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; + * * @return The updater. */ @java.lang.Override @@ -945,29 +1077,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 { @@ -976,6 +1108,7 @@ public java.lang.String getUpdater() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -987,8 +1120,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_); } @@ -1005,8 +1137,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)); @@ -1017,7 +1148,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_)) { @@ -1066,39 +1200,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_); @@ -1119,8 +1252,7 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1130,57 +1262,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.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 (getTextExtractionDisabled() - != other.getTextExtractionDisabled()) return false; - if (!getCreator() - .equals(other.getCreator())) return false; - if (!getUpdater() - .equals(other.getUpdater())) return false; + if (getAsyncEnabled() != other.getAsyncEnabled()) return false; + if (getTextExtractionDisabled() != other.getTextExtractionDisabled()) return false; + if (!getCreator().equals(other.getCreator())) return false; + if (!getUpdater().equals(other.getUpdater())) 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: @@ -1188,12 +1305,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: @@ -1238,11 +1353,9 @@ 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) + 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) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + UPDATER_FIELD_NUMBER; @@ -1276,130 +1389,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(); @@ -1457,9 +1576,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 @@ -1478,7 +1597,8 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; result.referenceId_ = referenceId_; @@ -1537,38 +1657,39 @@ public com.google.cloud.contentwarehouse.v1.Document 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.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; @@ -1623,9 +1744,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { 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_); } @@ -1655,34 +1777,40 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { onChanged(); } 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(); @@ -1710,123 +1838,136 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - documentSchemaName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + documentSchemaName_ = input.readStringRequireUtf8(); - 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); + 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); - break; - } // case 66 - case 74: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 74 - case 80: { - rawDocumentFileType_ = input.readEnum(); + break; + } // case 74 + case 80: + { + rawDocumentFileType_ = input.readEnum(); - break; - } // case 80 - case 90: { - referenceId_ = input.readStringRequireUtf8(); + break; + } // case 80 + case 90: + { + referenceId_ = input.readStringRequireUtf8(); - break; - } // case 90 - case 96: { - asyncEnabled_ = input.readBool(); + break; + } // case 90 + case 96: + { + asyncEnabled_ = input.readBool(); - break; - } // case 96 - case 106: { - creator_ = input.readStringRequireUtf8(); + break; + } // case 96 + case 106: + { + creator_ = input.readStringRequireUtf8(); - break; - } // case 106 - case 114: { - updater_ = input.readStringRequireUtf8(); + break; + } // case 106 + case 114: + { + updater_ = input.readStringRequireUtf8(); - break; - } // case 114 - case 122: { - java.lang.String s = input.readStringRequireUtf8(); - structuredContentCase_ = 15; - structuredContent_ = s; - break; - } // case 122 - case 130: { - structuredContentUri_ = input.readStringRequireUtf8(); + break; + } // case 114 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + structuredContentCase_ = 15; + structuredContent_ = s; + break; + } // case 122 + case 130: + { + structuredContentUri_ = input.readStringRequireUtf8(); - break; - } // case 130 - case 138: { - displayUri_ = input.readStringRequireUtf8(); + break; + } // case 130 + case 138: + { + displayUri_ = input.readStringRequireUtf8(); - break; - } // case 138 - case 146: { - title_ = input.readStringRequireUtf8(); + break; + } // case 138 + case 146: + { + title_ = input.readStringRequireUtf8(); - break; - } // case 146 - case 152: { - textExtractionDisabled_ = input.readBool(); + break; + } // case 146 + case 152: + { + textExtractionDisabled_ = input.readBool(); - break; - } // case 152 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 152 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1836,12 +1977,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() { @@ -1853,10 +1994,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() { @@ -1870,6 +2010,8 @@ public Builder clearRawDocument() { private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the document.
      * Format:
@@ -1878,13 +2020,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; @@ -1893,6 +2035,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -1901,15 +2045,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 { @@ -1917,6 +2060,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -1925,20 +2070,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -1947,15 +2094,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -1964,16 +2114,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1981,18 +2131,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; @@ -2001,20 +2153,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 { @@ -2022,54 +2175,61 @@ 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) { + public Builder setReferenceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceId_ = value; 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() { - + referenceId_ = getDefaultInstance().getReferenceId(); onChanged(); 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) { + public Builder setReferenceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceId_ = value; onChanged(); return this; @@ -2077,6 +2237,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.
@@ -2086,13 +2248,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; @@ -2101,6 +2263,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2110,15 +2274,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 { @@ -2126,6 +2289,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2135,20 +2300,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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2158,15 +2325,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. Display name of the document given by the user. This name will be displayed
      * in the UI.
@@ -2176,16 +2346,16 @@ 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2193,6 +2363,8 @@ public Builder setDisplayNameBytes( private java.lang.Object title_ = ""; /** + * + * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2200,13 +2372,13 @@ public Builder setDisplayNameBytes(
      * 
* * 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; @@ -2215,6 +2387,8 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2222,15 +2396,14 @@ public java.lang.String getTitle() {
      * 
* * 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 { @@ -2238,6 +2411,8 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2245,20 +2420,22 @@ public java.lang.String getTitle() {
      * 
* * string title = 18; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** + * + * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2266,15 +2443,18 @@ public Builder setTitle(
      * 
* * string title = 18; + * * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** + * + * *
      * Title that describes the document.
      * This is usually present in the top section of the document, and is a
@@ -2282,16 +2462,16 @@ public Builder clearTitle() {
      * 
* * string title = 18; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; @@ -2299,18 +2479,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; @@ -2319,20 +2501,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 { @@ -2340,54 +2523,61 @@ 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) { + public Builder setDisplayUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayUri_ = value; 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() { - + displayUri_ = getDefaultInstance().getDisplayUri(); onChanged(); 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) { + public Builder setDisplayUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayUri_ = value; onChanged(); return this; @@ -2395,6 +2585,8 @@ public Builder setDisplayUriBytes( private java.lang.Object documentSchemaName_ = ""; /** + * + * *
      * The Document schema name.
      * Format:
@@ -2402,13 +2594,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; @@ -2417,6 +2609,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2424,15 +2618,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 { @@ -2440,6 +2633,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2447,20 +2642,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) { + public Builder setDocumentSchemaName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentSchemaName_ = value; onChanged(); return this; } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2468,15 +2665,18 @@ public Builder setDocumentSchemaName(
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { - + documentSchemaName_ = getDefaultInstance().getDocumentSchemaName(); onChanged(); return this; } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2484,27 +2684,30 @@ 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) { + public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentSchemaName_ = value; onChanged(); return this; } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @return Whether the plainText field is set. */ @java.lang.Override @@ -2512,11 +2715,14 @@ public boolean hasPlainText() { return structuredContentCase_ == 15; } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @return The plainText. */ @java.lang.Override @@ -2526,8 +2732,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; @@ -2538,24 +2743,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; } @@ -2565,30 +2771,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) { + public Builder setPlainText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - structuredContentCase_ = 15; + 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() { @@ -2600,20 +2811,22 @@ 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) { + public Builder setPlainTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); structuredContentCase_ = 15; structuredContent_ = value; onChanged(); @@ -2621,13 +2834,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 @@ -2635,11 +2854,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 @@ -2657,6 +2879,8 @@ public com.google.cloud.documentai.v1.Document getCloudAiDocument() { } } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2677,6 +2901,8 @@ public Builder setCloudAiDocument(com.google.cloud.documentai.v1.Document value) return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2695,6 +2921,8 @@ public Builder setCloudAiDocument( return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2703,10 +2931,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; } @@ -2722,6 +2953,8 @@ public Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document valu return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2745,6 +2978,8 @@ public Builder clearCloudAiDocument() { return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2755,6 +2990,8 @@ public com.google.cloud.documentai.v1.Document.Builder getCloudAiDocumentBuilder return getCloudAiDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2773,6 +3010,8 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2780,38 +3019,46 @@ 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()); structuredContent_ = null; } structuredContentCase_ = 4; - onChanged();; + onChanged(); + ; return cloudAiDocumentBuilder_; } private java.lang.Object structuredContentUri_ = ""; /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; + * * @return The structuredContentUri. */ 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; @@ -2820,20 +3067,21 @@ public java.lang.String getStructuredContentUri() { } } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; + * * @return The bytes for structuredContentUri. */ - public com.google.protobuf.ByteString - getStructuredContentUriBytes() { + 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 { @@ -2841,65 +3089,75 @@ public java.lang.String getStructuredContentUri() { } } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; + * * @param value The structuredContentUri to set. * @return This builder for chaining. */ - public Builder setStructuredContentUri( - java.lang.String value) { + public Builder setStructuredContentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + structuredContentUri_ = value; onChanged(); return this; } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; + * * @return This builder for chaining. */ public Builder clearStructuredContentUri() { - + structuredContentUri_ = getDefaultInstance().getStructuredContentUri(); onChanged(); return this; } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16; + * * @param value The bytes for structuredContentUri to set. * @return This builder for chaining. */ - public Builder setStructuredContentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setStructuredContentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + structuredContentUri_ = value; onChanged(); return this; } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @return Whether the rawDocumentPath field is set. */ @java.lang.Override @@ -2907,11 +3165,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 @@ -2921,8 +3182,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; @@ -2933,24 +3193,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; } @@ -2960,30 +3221,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) { + public Builder setRawDocumentPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - rawDocumentCase_ = 5; + 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() { @@ -2995,20 +3261,22 @@ 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) { + public Builder setRawDocumentPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); rawDocumentCase_ = 5; rawDocument_ = value; onChanged(); @@ -3016,22 +3284,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() { @@ -3041,29 +3315,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(); - } - rawDocumentCase_ = 6; + 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() { @@ -3076,18 +3356,25 @@ public Builder clearInlineRawDocument() { } 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 values that are user supplied metadata.
      * 
@@ -3102,6 +3389,8 @@ public java.util.List getProperti } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3116,6 +3405,8 @@ public int getPropertiesCount() { } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3130,14 +3421,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(); @@ -3151,6 +3443,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3169,6 +3463,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3189,14 +3485,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(); @@ -3210,6 +3507,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3228,6 +3527,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3246,6 +3547,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3256,8 +3559,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); @@ -3265,6 +3567,8 @@ public Builder addAllProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3282,6 +3586,8 @@ public Builder clearProperties() { return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3299,17 +3605,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.
      * 
@@ -3319,19 +3628,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 { @@ -3339,6 +3651,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3346,42 +3660,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_ & 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_; @@ -3389,39 +3709,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3437,14 +3776,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(); onChanged(); @@ -3455,17 +3797,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3477,11 +3823,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() { if (updateTimeBuilder_ == null) { @@ -3495,48 +3845,64 @@ 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() { - + onChanged(); 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_; @@ -3544,39 +3910,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 createTimeBuilder_ != null || 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. */ 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) { @@ -3592,14 +3977,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(); onChanged(); @@ -3610,17 +3998,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3632,11 +4024,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() { if (createTimeBuilder_ == null) { @@ -3650,48 +4046,64 @@ 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() { - + onChanged(); 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_; @@ -3699,6 +4111,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
@@ -3706,13 +4120,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
@@ -3720,17 +4139,21 @@ 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. */ public Builder setRawDocumentFileTypeValue(int value) { - + rawDocumentFileType_ = value; onChanged(); 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
@@ -3738,16 +4161,23 @@ 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = com.google.cloud.contentwarehouse.v1.RawDocumentFileType.valueOf(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.valueOf(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
@@ -3755,20 +4185,25 @@ 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(); } - + rawDocumentFileType_ = value.getNumber(); onChanged(); 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
@@ -3776,23 +4211,28 @@ 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() { - + rawDocumentFileType_ = 0; onChanged(); return this; } - private boolean asyncEnabled_ ; + private boolean asyncEnabled_; /** + * + * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12; + * * @return The asyncEnabled. */ @java.lang.Override @@ -3800,42 +4240,51 @@ public boolean getAsyncEnabled() { return asyncEnabled_; } /** + * + * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12; + * * @param value The asyncEnabled to set. * @return This builder for chaining. */ public Builder setAsyncEnabled(boolean value) { - + asyncEnabled_ = value; onChanged(); return this; } /** + * + * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12; + * * @return This builder for chaining. */ public Builder clearAsyncEnabled() { - + asyncEnabled_ = false; onChanged(); return this; } - private boolean textExtractionDisabled_ ; + private boolean textExtractionDisabled_; /** + * + * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19; + * * @return The textExtractionDisabled. */ @java.lang.Override @@ -3843,30 +4292,36 @@ public boolean getTextExtractionDisabled() { return textExtractionDisabled_; } /** + * + * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19; + * * @param value The textExtractionDisabled to set. * @return This builder for chaining. */ public Builder setTextExtractionDisabled(boolean value) { - + textExtractionDisabled_ = value; onChanged(); return this; } /** + * + * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19; + * * @return This builder for chaining. */ public Builder clearTextExtractionDisabled() { - + textExtractionDisabled_ = false; onChanged(); return this; @@ -3874,18 +4329,20 @@ public Builder clearTextExtractionDisabled() { 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; @@ -3894,20 +4351,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 { @@ -3915,54 +4373,61 @@ 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) { + public Builder setCreator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** + * + * *
      * The user who creates the document.
      * 
* * string creator = 13; + * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); 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) { + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; @@ -3970,18 +4435,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; @@ -3990,20 +4457,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 { @@ -4011,61 +4479,68 @@ 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) { + public Builder setUpdater(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + updater_ = value; onChanged(); return this; } /** + * + * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; + * * @return This builder for chaining. */ public Builder clearUpdater() { - + updater_ = getDefaultInstance().getUpdater(); onChanged(); 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) { + public Builder setUpdaterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + updater_ = 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); } @@ -4075,12 +4550,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(); } @@ -4089,27 +4564,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; @@ -4124,6 +4599,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/DocumentLink.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.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/DocumentLink.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java index d112b27c13ac..dfd668019bd6 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,39 +45,43 @@ private DocumentLink() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentLink(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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.
      * 
@@ -68,6 +90,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The documentlink has both source and target documents detected.
      * 
@@ -76,6 +100,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -87,6 +113,8 @@ public enum State ; /** + * + * *
      * Unknown state of documentlink.
      * 
@@ -95,6 +123,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The documentlink has both source and target documents detected.
      * 
@@ -103,6 +133,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -111,7 +143,6 @@ public enum State */ public static final int SOFT_DELETED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,49 +167,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; @@ -198,6 +231,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; 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
@@ -207,6 +242,7 @@ private State(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -215,14 +251,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
@@ -232,16 +269,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 { @@ -252,11 +288,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 @@ -264,18 +303,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.
    * 
@@ -283,18 +329,22 @@ 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() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getSourceDocumentReferenceOrBuilder() { return getSourceDocumentReference(); } 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 @@ -302,18 +352,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.
    * 
@@ -321,18 +378,22 @@ 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() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getTargetDocumentReferenceOrBuilder() { return getTargetDocumentReference(); } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** + * + * *
    * Description of this document-link.
    * 
* * string description = 4; + * * @return The description. */ @java.lang.Override @@ -341,29 +402,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 { @@ -374,11 +435,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 @@ -386,11 +451,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 @@ -398,11 +467,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() { @@ -412,11 +484,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 @@ -424,11 +500,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 @@ -436,11 +516,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() { @@ -450,6 +533,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 7; private int 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
@@ -457,12 +542,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
@@ -470,15 +559,21 @@ 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = com.google.cloud.contentwarehouse.v1.DocumentLink.State.valueOf(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.valueOf(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; @@ -490,8 +585,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_); } @@ -510,7 +604,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); @@ -526,27 +621,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; @@ -556,36 +649,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; @@ -627,129 +715,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(); @@ -787,9 +881,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 @@ -808,7 +902,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); + com.google.cloud.contentwarehouse.v1.DocumentLink result = + new com.google.cloud.contentwarehouse.v1.DocumentLink(this); result.name_ = name_; if (sourceDocumentReferenceBuilder_ == null) { result.sourceDocumentReference_ = sourceDocumentReference_; @@ -840,38 +935,39 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink 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.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; @@ -879,7 +975,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_; onChanged(); @@ -929,55 +1026,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getSourceDocumentReferenceFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getTargetDocumentReferenceFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 56: { - state_ = input.readEnum(); - - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getSourceDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage( + getTargetDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + + 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) { @@ -990,6 +1089,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -999,13 +1100,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; @@ -1014,6 +1115,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
@@ -1023,15 +1126,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 { @@ -1039,6 +1141,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
@@ -1048,20 +1152,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1071,15 +1177,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1089,16 +1198,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1106,41 +1215,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 sourceDocumentReferenceBuilder_ != null || sourceDocumentReference_ != null; } /** + * + * *
      * 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(); @@ -1154,11 +1280,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) { @@ -1172,17 +1301,24 @@ 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 (sourceDocumentReference_ != null) { sourceDocumentReference_ = - com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder(sourceDocumentReference_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder( + sourceDocumentReference_) + .mergeFrom(value) + .buildPartial(); } else { sourceDocumentReference_ = value; } @@ -1194,11 +1330,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() { if (sourceDocumentReferenceBuilder_ == null) { @@ -1212,48 +1351,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() { + 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_; @@ -1261,41 +1415,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 targetDocumentReferenceBuilder_ != null || targetDocumentReference_ != null; } /** + * + * *
      * 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(); @@ -1309,11 +1480,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) { @@ -1327,17 +1501,24 @@ 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 (targetDocumentReference_ != null) { targetDocumentReference_ = - com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder(targetDocumentReference_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder( + targetDocumentReference_) + .mergeFrom(value) + .buildPartial(); } else { targetDocumentReference_ = value; } @@ -1349,11 +1530,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() { if (targetDocumentReferenceBuilder_ == null) { @@ -1367,48 +1551,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() { + 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_; @@ -1416,18 +1615,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; @@ -1436,20 +1637,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 { @@ -1457,54 +1659,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Description of this document-link.
      * 
* * string description = 4; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1512,39 +1721,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1560,14 +1788,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(); onChanged(); @@ -1578,17 +1809,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1600,11 +1835,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() { if (updateTimeBuilder_ == null) { @@ -1618,48 +1857,64 @@ 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() { - + onChanged(); 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_; @@ -1667,39 +1922,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1715,14 +1989,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(); onChanged(); @@ -1733,17 +2010,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1755,11 +2036,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() { if (createTimeBuilder_ == null) { @@ -1773,48 +2058,64 @@ 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() { - + onChanged(); 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_; @@ -1822,6 +2123,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
@@ -1829,12 +2132,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
@@ -1842,16 +2149,19 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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
@@ -1859,15 +2169,21 @@ 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = com.google.cloud.contentwarehouse.v1.DocumentLink.State.valueOf(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.valueOf(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
@@ -1875,6 +2191,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. */ @@ -1882,12 +2199,14 @@ public Builder setState(com.google.cloud.contentwarehouse.v1.DocumentLink.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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
@@ -1895,17 +2214,18 @@ 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() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1915,12 +2235,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(); } @@ -1929,27 +2249,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; @@ -1964,6 +2284,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..bbf85ba8b160 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..391c21ed0243 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java @@ -0,0 +1,245 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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: @@ -16,10 +34,13 @@ public interface DocumentOrBuilder extends *
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the document.
    * Format:
@@ -28,32 +49,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.
@@ -63,10 +91,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.
@@ -76,12 +107,14 @@ 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 is usually present in the top section of the document, and is a
@@ -89,10 +122,13 @@ public interface DocumentOrBuilder extends
    * 
* * string title = 18; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
    * Title that describes the document.
    * This is usually present in the top section of the document, and is a
@@ -100,32 +136,39 @@ public interface DocumentOrBuilder extends
    * 
* * 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:
@@ -133,10 +176,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:
@@ -144,59 +190,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.
    * 
@@ -206,83 +268,105 @@ public interface DocumentOrBuilder extends com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder(); /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16; + * * @return The structuredContentUri. */ java.lang.String getStructuredContentUri(); /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16; + * * @return The bytes for structuredContentUri. */ - com.google.protobuf.ByteString - getStructuredContentUriBytes(); + 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.
    * 
@@ -291,6 +375,8 @@ public interface DocumentOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Property getProperties(int index); /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -299,79 +385,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
@@ -380,10 +493,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
@@ -392,71 +508,89 @@ 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; + * * @return The asyncEnabled. */ boolean getAsyncEnabled(); /** + * + * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19; + * * @return The textExtractionDisabled. */ boolean getTextExtractionDisabled(); /** + * + * *
    * 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(); - public com.google.cloud.contentwarehouse.v1.Document.StructuredContentCase getStructuredContentCase(); + public com.google.cloud.contentwarehouse.v1.Document.StructuredContentCase + getStructuredContentCase(); public com.google.cloud.contentwarehouse.v1.Document.RawDocumentCase getRawDocumentCase(); } 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..b4cdd386e17c --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java @@ -0,0 +1,376 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\"\266\007\n\010Document\022\014\n\004name\030\001 \001(\t\022\024\n\014re" + + "ference_id\030\013 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022\r\n\005title\030\022 \001(\t\022\023\n\013display_uri\030\021 \001(\t\022" + + "Q\n\024document_schema_name\030\003 \001(\tB3\372A0\n.cont" + + "entwarehouse.googleapis.com/DocumentSche" + + "ma\022\024\n\nplain_text\030\017 \001(\tH\000\022A\n\021cloud_ai_doc" + + "ument\030\004 \001(\0132$.google.cloud.documentai.v1" + + ".DocumentH\000\022\036\n\026structured_content_uri\030\020 " + + "\001(\t\022\033\n\021raw_document_path\030\005 \001(\tH\001\022\035\n\023inli" + + "ne_raw_document\030\006 \001(\014H\001\022>\n\nproperties\030\007 " + + "\003(\0132*.google.cloud.contentwarehouse.v1.P" + + "roperty\0224\n\013update_time\030\010 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013create_time\030\t \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n\026r" + + "aw_document_file_type\030\n \001(\01625.google.clo" + + "ud.contentwarehouse.v1.RawDocumentFileTy" + + "pe\022\025\n\rasync_enabled\030\014 \001(\010\022 \n\030text_extrac" + + "tion_disabled\030\023 \001(\010\022\017\n\007creator\030\r \001(\t\022\017\n\007" + + "updater\030\016 \001(\t:\272\001\352A\266\001\n(contentwarehouse.g" + + "oogleapis.com/Document\022\n\nproperties\030\001 \003(\0132*.google.c" + + "loud.contentwarehouse.v1.Property\"\260\001\n\013Ma" + + "pProperty\022I\n\006fields\030\001 \003(\01329.google.cloud" + + ".contentwarehouse.v1.MapProperty.FieldsE" + + "ntry\032V\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005valu" + + "e\030\002 \001(\0132\'.google.cloud.contentwarehouse." + + "v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013float_value\030\001 " + + "\001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022\026\n\014string_val" + + "ue\030\003 \001(\tH\000\022A\n\nenum_value\030\004 \001(\0132+.google." + + "cloud.contentwarehouse.v1.EnumValueH\000\022/\n" + + "\016datetime_value\030\005 \001(\0132\025.google.type.Date" + + "TimeH\000\022K\n\017timestamp_value\030\006 \001(\01320.google" + + ".cloud.contentwarehouse.v1.TimestampValu" + + "eH\000\022\027\n\rboolean_value\030\007 \001(\010H\000B\006\n\004kind\"\032\n\t" + + "EnumValue\022\r\n\005value\030\001 \001(\t*\341\001\n\023RawDocument" + + "FileType\022&\n\"RAW_DOCUMENT_FILE_TYPE_UNSPE" + + "CIFIED\020\000\022\036\n\032RAW_DOCUMENT_FILE_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_DOCUME" + + "NT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_DOCUMENT_FILE" + + "_TYPE_TEXT\020\005B\211\001\n$com.google.cloud.conten" + + "twarehouse.v1B\rDocumentProtoP\001ZPgoogle.g" + + "olang.org/genproto/googleapis/cloud/cont" + + "entwarehouse/v1;contentwarehouseb\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", + "TextExtractionDisabled", + "Creator", + "Updater", + "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", + }); + 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 81% 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 d8679ad83298..aa02bbefa1bc 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,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -28,32 +42,35 @@ private DocumentQuery() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentQuery(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object query_; /** + * + * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -61,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string query = 1; + * * @return The query. */ @java.lang.Override @@ -69,14 +87,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.
@@ -84,16 +103,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 { @@ -104,6 +122,8 @@ public java.lang.String getQuery() { public static final int IS_NL_QUERY_FIELD_NUMBER = 12; private boolean isNlQuery_; /** + * + * *
    * Experimental, do not use.
    * If the query is a natural language question. False by default. If true,
@@ -114,6 +134,7 @@ public java.lang.String getQuery() {
    * 
* * bool is_nl_query = 12; + * * @return The isNlQuery. */ @java.lang.Override @@ -124,6 +145,8 @@ public boolean getIsNlQuery() { public static final int CUSTOM_PROPERTY_FILTER_FIELD_NUMBER = 4; 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
@@ -144,24 +167,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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
@@ -182,18 +208,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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 { @@ -204,6 +230,8 @@ public boolean getIsNlQuery() { public static final int TIME_FILTERS_FIELD_NUMBER = 5; private java.util.List timeFilters_; /** + * + * *
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -216,6 +244,8 @@ public java.util.List getTimeFi
     return timeFilters_;
   }
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -224,11 +254,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.
@@ -241,6 +273,8 @@ public int getTimeFiltersCount() {
     return timeFilters_.size();
   }
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -253,6 +287,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.
@@ -269,6 +305,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
   public static final int DOCUMENT_SCHEMA_NAMES_FIELD_NUMBER = 6;
   private com.google.protobuf.LazyStringList documentSchemaNames_;
   /**
+   *
+   *
    * 
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -280,13 +318,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] of the documents to search against.
@@ -298,12 +338,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] of the documents to search against.
@@ -315,6 +358,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. */ @@ -322,6 +366,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] of the documents to search against.
@@ -333,17 +379,19 @@ 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; 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] marked as `true`. The relationship
@@ -353,10 +401,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] marked as `true`. The relationship
@@ -366,11 +417,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] marked as `true`. The relationship
@@ -384,6 +437,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] marked as `true`. The relationship
@@ -397,6 +452,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] marked as `true`. The relationship
@@ -414,6 +471,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
@@ -423,6 +482,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 @@ -430,6 +490,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
@@ -439,13 +501,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
@@ -464,6 +531,8 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
   public static final int FOLDER_NAME_FILTER_FIELD_NUMBER = 9;
   private volatile java.lang.Object folderNameFilter_;
   /**
+   *
+   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -471,6 +540,7 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
    * 
* * string folder_name_filter = 9; + * * @return The folderNameFilter. */ @java.lang.Override @@ -479,14 +549,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:
@@ -494,16 +565,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 { @@ -514,6 +584,8 @@ public java.lang.String getFolderNameFilter() { public static final int QUERY_CONTEXT_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList queryContext_; /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -525,13 +597,15 @@ public java.lang.String getFolderNameFilter() {
    * 
* * 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
@@ -543,12 +617,15 @@ public java.lang.String getFolderNameFilter() {
    * 
* * 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
@@ -560,6 +637,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. */ @@ -567,6 +645,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
@@ -578,17 +658,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; private com.google.protobuf.LazyStringList documentCreatorFilter_; /** + * + * *
    * The exact creator(s) of the documents to search against.
    * If a value isn't specified, documents within the search results are
@@ -598,13 +680,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.
    * If a value isn't specified, documents within the search results are
@@ -614,12 +698,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.
    * If a value isn't specified, documents within the search results are
@@ -629,6 +716,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. */ @@ -636,6 +724,8 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** + * + * *
    * The exact creator(s) of the documents to search against.
    * If a value isn't specified, documents within the search results are
@@ -645,15 +735,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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -665,8 +756,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_); } @@ -692,7 +782,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_); @@ -713,8 +804,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; @@ -725,12 +815,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_); @@ -752,8 +840,7 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -763,36 +850,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.DocumentQuery)) { return super.equals(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; + 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 (hasFileTypeFilter() != other.hasFileTypeFilter()) return false; if (hasFileTypeFilter()) { - if (!getFileTypeFilter() - .equals(other.getFileTypeFilter())) return false; - } - if (!getFolderNameFilter() - .equals(other.getFolderNameFilter())) 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 (!getQueryContextList().equals(other.getQueryContextList())) return false; + if (!getDocumentCreatorFilterList().equals(other.getDocumentCreatorFilterList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -807,8 +885,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) { @@ -843,125 +920,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(); @@ -1003,9 +1082,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 @@ -1024,7 +1103,8 @@ 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); int from_bitField0_ = bitField0_; result.query_ = query_; result.isNlQuery_ = isNlQuery_; @@ -1076,38 +1156,39 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery 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.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; @@ -1115,7 +1196,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_; onChanged(); @@ -1145,9 +1227,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe timeFiltersBuilder_ = null; timeFilters_ = other.timeFilters_; bitField0_ = (bitField0_ & ~0x00000001); - timeFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimeFiltersFieldBuilder() : null; + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeFiltersFieldBuilder() + : null; } else { timeFiltersBuilder_.addAllMessages(other.timeFilters_); } @@ -1181,9 +1264,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe propertyFilterBuilder_ = null; propertyFilter_ = other.propertyFilter_; bitField0_ = (bitField0_ & ~0x00000004); - propertyFilterBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertyFilterFieldBuilder() : null; + propertyFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyFilterFieldBuilder() + : null; } else { propertyFilterBuilder_.addAllMessages(other.propertyFilter_); } @@ -1242,83 +1326,92 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - query_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 34: { - customPropertyFilter_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 66 - case 74: { - folderNameFilter_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + query_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 34: + { + customPropertyFilter_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 66 + case 74: + { + folderNameFilter_ = input.readStringRequireUtf8(); + + 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(); + + 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) { @@ -1328,10 +1421,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.
@@ -1339,13 +1435,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; @@ -1354,6 +1450,8 @@ public java.lang.String getQuery() { } } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1361,15 +1459,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 { @@ -1377,6 +1474,8 @@ public java.lang.String getQuery() { } } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1384,20 +1483,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) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1405,15 +1506,18 @@ public Builder setQuery(
      * 
* * string query = 1; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1421,23 +1525,25 @@ 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) { + public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); 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,
@@ -1448,6 +1554,7 @@ public Builder setQueryBytes(
      * 
* * bool is_nl_query = 12; + * * @return The isNlQuery. */ @java.lang.Override @@ -1455,6 +1562,8 @@ public boolean getIsNlQuery() { return isNlQuery_; } /** + * + * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -1465,16 +1574,19 @@ public boolean getIsNlQuery() {
      * 
* * bool is_nl_query = 12; + * * @param value The isNlQuery to set. * @return This builder for chaining. */ public Builder setIsNlQuery(boolean value) { - + isNlQuery_ = value; onChanged(); return this; } /** + * + * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -1485,10 +1597,11 @@ public Builder setIsNlQuery(boolean value) {
      * 
* * bool is_nl_query = 12; + * * @return This builder for chaining. */ public Builder clearIsNlQuery() { - + isNlQuery_ = false; onChanged(); return this; @@ -1496,6 +1609,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
@@ -1516,15 +1631,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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; @@ -1533,6 +1649,8 @@ public Builder clearIsNlQuery() { } } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -1553,17 +1671,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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 { @@ -1571,6 +1689,8 @@ public Builder clearIsNlQuery() { } } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -1591,22 +1711,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @param value The customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setCustomPropertyFilter( - java.lang.String value) { + @java.lang.Deprecated + public Builder setCustomPropertyFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customPropertyFilter_ = value; onChanged(); return this; } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -1627,17 +1750,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearCustomPropertyFilter() { - + @java.lang.Deprecated + public Builder clearCustomPropertyFilter() { + customPropertyFilter_ = getDefaultInstance().getCustomPropertyFilter(); onChanged(); return this; } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -1658,36 +1785,44 @@ 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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @param value The bytes for customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setCustomPropertyFilterBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setCustomPropertyFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customPropertyFilter_ = value; onChanged(); return this; } private java.util.List timeFilters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimeFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - timeFilters_ = new java.util.ArrayList(timeFilters_); + timeFilters_ = + new java.util.ArrayList(timeFilters_); bitField0_ |= 0x00000001; - } + } } 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.
@@ -1703,6 +1838,8 @@ public java.util.List getTimeFi
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1718,6 +1855,8 @@ public int getTimeFiltersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1733,6 +1872,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1755,6 +1896,8 @@ public Builder setTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1774,6 +1917,8 @@ public Builder setTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1795,6 +1940,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.
@@ -1817,6 +1964,8 @@ public Builder addTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1836,6 +1985,8 @@ public Builder addTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1855,6 +2006,8 @@ public Builder addTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1866,8 +2019,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);
@@ -1875,6 +2027,8 @@ public Builder addAllTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1893,6 +2047,8 @@ public Builder clearTimeFilters() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1911,6 +2067,8 @@ public Builder removeTimeFilters(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1923,6 +2081,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.
@@ -1933,11 +2093,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.
@@ -1945,8 +2108,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 {
@@ -1954,6 +2117,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -1962,10 +2127,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.
@@ -1975,10 +2142,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.
@@ -1986,33 +2155,40 @@ 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_ & 0x00000001) != 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_ & 0x00000001) != 0), getParentForChildren(), isClean());
         timeFilters_ = null;
       }
       return timeFiltersBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList documentSchemaNames_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureDocumentSchemaNamesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         documentSchemaNames_ = new com.google.protobuf.LazyStringArrayList(documentSchemaNames_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2024,13 +2200,15 @@ 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() { return documentSchemaNames_.getUnmodifiableView(); } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2042,12 +2220,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] of the documents to search against.
@@ -2059,6 +2240,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. */ @@ -2066,6 +2248,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] of the documents to search against.
@@ -2077,14 +2261,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] of the documents to search against.
@@ -2096,21 +2282,23 @@ 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) { + public Builder setDocumentSchemaNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemaNamesIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2122,20 +2310,22 @@ 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) { + public Builder addDocumentSchemaNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemaNamesIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2147,18 +2337,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2170,6 +2361,7 @@ public Builder addAllDocumentSchemaNames(
      * 
* * repeated string document_schema_names = 6; + * * @return This builder for chaining. */ public Builder clearDocumentSchemaNames() { @@ -2179,6 +2371,8 @@ public Builder clearDocumentSchemaNames() { return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.
@@ -2190,15 +2384,15 @@ 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) { + public Builder addDocumentSchemaNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); onChanged(); @@ -2206,18 +2400,26 @@ public Builder addDocumentSchemaNamesBytes( } private java.util.List propertyFilter_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePropertyFilterIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - propertyFilter_ = new java.util.ArrayList(propertyFilter_); + propertyFilter_ = + new java.util.ArrayList( + propertyFilter_); bitField0_ |= 0x00000004; - } + } } 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] marked as `true`. The relationship
@@ -2226,7 +2428,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 {
@@ -2234,6 +2437,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] marked as `true`. The relationship
@@ -2250,6 +2455,8 @@ public int getPropertyFilterCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship
@@ -2266,6 +2473,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] marked as `true`. The relationship
@@ -2289,6 +2498,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] marked as `true`. The relationship
@@ -2309,6 +2520,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] marked as `true`. The relationship
@@ -2331,6 +2544,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] marked as `true`. The relationship
@@ -2354,6 +2569,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] marked as `true`. The relationship
@@ -2374,6 +2591,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] marked as `true`. The relationship
@@ -2394,6 +2613,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] marked as `true`. The relationship
@@ -2406,8 +2627,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);
@@ -2415,6 +2635,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] marked as `true`. The relationship
@@ -2434,6 +2656,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] marked as `true`. The relationship
@@ -2453,6 +2677,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] marked as `true`. The relationship
@@ -2466,6 +2692,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] marked as `true`. The relationship
@@ -2477,11 +2705,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] marked as `true`. The relationship
@@ -2490,8 +2721,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 {
@@ -2499,6 +2730,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] marked as `true`. The relationship
@@ -2508,10 +2741,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] marked as `true`. The relationship
@@ -2522,10 +2757,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] marked as `true`. The relationship
@@ -2534,16 +2772,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_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -2555,8 +2799,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
@@ -2566,12 +2815,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 fileTypeFilterBuilder_ != null || 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
@@ -2581,16 +2833,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
@@ -2615,6 +2872,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
@@ -2637,6 +2896,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
@@ -2651,7 +2912,9 @@ public Builder mergeFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileType
       if (fileTypeFilterBuilder_ == null) {
         if (fileTypeFilter_ != null) {
           fileTypeFilter_ =
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter.newBuilder(fileTypeFilter_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.FileTypeFilter.newBuilder(fileTypeFilter_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fileTypeFilter_ = value;
         }
@@ -2663,6 +2926,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
@@ -2685,6 +2950,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
@@ -2696,11 +2963,13 @@ public Builder clearFileTypeFilter() {
      * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;
      */
     public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFilterBuilder() {
-      
+
       onChanged();
       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
@@ -2711,15 +2980,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
@@ -2731,14 +3004,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_;
@@ -2746,6 +3022,8 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
 
     private java.lang.Object folderNameFilter_ = "";
     /**
+     *
+     *
      * 
      * Search all the documents under this specified folder.
      * Format:
@@ -2753,13 +3031,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; @@ -2768,6 +3046,8 @@ public java.lang.String getFolderNameFilter() { } } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -2775,15 +3055,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 { @@ -2791,6 +3070,8 @@ public java.lang.String getFolderNameFilter() { } } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -2798,20 +3079,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) { + public Builder setFolderNameFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + folderNameFilter_ = value; onChanged(); return this; } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -2819,15 +3102,18 @@ public Builder setFolderNameFilter(
      * 
* * string folder_name_filter = 9; + * * @return This builder for chaining. */ public Builder clearFolderNameFilter() { - + folderNameFilter_ = getDefaultInstance().getFolderNameFilter(); onChanged(); return this; } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -2835,29 +3121,33 @@ 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) { + public Builder setFolderNameFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folderNameFilter_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList queryContext_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList queryContext_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureQueryContextIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { queryContext_ = new com.google.protobuf.LazyStringArrayList(queryContext_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -2869,13 +3159,15 @@ 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() { return queryContext_.getUnmodifiableView(); } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -2887,12 +3179,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
@@ -2904,6 +3199,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. */ @@ -2911,6 +3207,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
@@ -2922,14 +3220,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
@@ -2941,21 +3241,23 @@ 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) { + public Builder setQueryContext(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueryContextIsMutable(); + throw new NullPointerException(); + } + ensureQueryContextIsMutable(); queryContext_.set(index, value); onChanged(); return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -2967,20 +3269,22 @@ 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) { + public Builder addQueryContext(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueryContextIsMutable(); + throw new NullPointerException(); + } + ensureQueryContextIsMutable(); queryContext_.add(value); onChanged(); return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -2992,18 +3296,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3015,6 +3320,7 @@ public Builder addAllQueryContext(
      * 
* * repeated string query_context = 10; + * * @return This builder for chaining. */ public Builder clearQueryContext() { @@ -3024,6 +3330,8 @@ public Builder clearQueryContext() { return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3035,29 +3343,34 @@ 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) { + public Builder addQueryContextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureQueryContextIsMutable(); queryContext_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList documentCreatorFilter_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDocumentCreatorFilterIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - documentCreatorFilter_ = new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); + documentCreatorFilter_ = + new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); bitField0_ |= 0x00000010; - } + } } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3067,13 +3380,15 @@ 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() { return documentCreatorFilter_.getUnmodifiableView(); } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3083,12 +3398,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.
      * If a value isn't specified, documents within the search results are
@@ -3098,6 +3416,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. */ @@ -3105,6 +3424,8 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3114,14 +3435,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.
      * If a value isn't specified, documents within the search results are
@@ -3131,21 +3454,23 @@ 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) { + public Builder setDocumentCreatorFilter(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentCreatorFilterIsMutable(); + throw new NullPointerException(); + } + ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.set(index, value); onChanged(); return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3155,20 +3480,22 @@ 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) { + public Builder addDocumentCreatorFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentCreatorFilterIsMutable(); + throw new NullPointerException(); + } + ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); onChanged(); return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3178,18 +3505,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3199,6 +3527,7 @@ public Builder addAllDocumentCreatorFilter(
      * 
* * repeated string document_creator_filter = 11; + * * @return This builder for chaining. */ public Builder clearDocumentCreatorFilter() { @@ -3208,6 +3537,8 @@ public Builder clearDocumentCreatorFilter() { return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      * If a value isn't specified, documents within the search results are
@@ -3217,23 +3548,23 @@ 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) { + public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3243,12 +3574,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(); } @@ -3257,27 +3588,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; @@ -3292,6 +3623,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 89% 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 4686493f068e..11a07f7d49b8 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -15,10 +33,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.
@@ -26,12 +47,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,
@@ -42,11 +65,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
@@ -67,12 +93,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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
@@ -93,14 +123,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=59 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=59 * @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.
@@ -108,9 +141,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.
@@ -120,6 +154,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.
@@ -129,6 +165,8 @@ public interface DocumentQueryOrBuilder extends
    */
   int getTimeFiltersCount();
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -136,9 +174,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.
@@ -146,10 +186,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] of the documents to search against.
@@ -161,11 +202,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] of the documents to search against.
@@ -177,10 +220,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] of the documents to search against.
@@ -192,11 +238,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] of the documents to search against.
@@ -208,13 +257,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] marked as `true`. The relationship
@@ -223,9 +274,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] marked as `true`. The relationship
@@ -236,6 +288,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] marked as `true`. The relationship
@@ -246,6 +300,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] marked as `true`. The relationship
@@ -254,9 +310,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] marked as `true`. The relationship
@@ -269,6 +327,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
@@ -278,10 +338,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
@@ -291,10 +354,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
@@ -308,6 +374,8 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
   com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder();
 
   /**
+   *
+   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -315,10 +383,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:
@@ -326,12 +397,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(); /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -343,11 +416,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
@@ -359,10 +434,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
@@ -374,11 +452,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
@@ -390,13 +471,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.
    * If a value isn't specified, documents within the search results are
@@ -406,11 +489,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.
    * If a value isn't specified, documents within the search results are
@@ -420,10 +505,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.
    * If a value isn't specified, documents within the search results are
@@ -433,11 +521,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.
    * If a value isn't specified, documents within the search results are
@@ -447,9 +538,9 @@ 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); } 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 66% 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 cafd7e5cd85e..5caa29b7db05 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,37 +45,43 @@ private DocumentReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,29 +90,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 { @@ -99,6 +125,8 @@ public java.lang.String getDocumentName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 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
@@ -106,6 +134,7 @@ public java.lang.String getDocumentName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -114,14 +143,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
@@ -129,16 +159,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 { @@ -149,6 +178,8 @@ public java.lang.String getDisplayName() { public static final int SNIPPET_FIELD_NUMBER = 3; 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
@@ -156,6 +187,7 @@ public java.lang.String getDisplayName() {
    * 
* * string snippet = 3; + * * @return The snippet. */ @java.lang.Override @@ -164,14 +196,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
@@ -179,16 +212,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 { @@ -199,11 +231,14 @@ public java.lang.String getSnippet() { public static final int DOCUMENT_IS_FOLDER_FIELD_NUMBER = 4; private boolean documentIsFolder_; /** + * + * *
    * The document type of the document being referenced.
    * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ @java.lang.Override @@ -214,11 +249,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 @@ -226,11 +265,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 @@ -238,11 +281,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() { @@ -252,11 +298,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 @@ -264,11 +314,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 @@ -276,11 +330,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() { @@ -290,11 +347,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 @@ -302,11 +363,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 @@ -314,11 +379,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,6 +394,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentName_); } @@ -379,20 +447,16 @@ 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()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -402,35 +466,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -450,8 +508,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(); @@ -470,129 +527,136 @@ public int hashCode() { } 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(); @@ -626,9 +690,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 @@ -647,7 +711,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); + com.google.cloud.contentwarehouse.v1.DocumentReference result = + new com.google.cloud.contentwarehouse.v1.DocumentReference(this); result.documentName_ = documentName_; result.displayName_ = displayName_; result.snippet_ = snippet_; @@ -675,38 +740,39 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference 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.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; @@ -714,7 +780,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_; onChanged(); @@ -765,53 +832,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - documentName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - snippet_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - documentIsFolder_ = input.readBool(); - - break; - } // case 32 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + documentName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + snippet_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + documentIsFolder_ = input.readBool(); + + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -824,18 +893,22 @@ public Builder mergeFrom( 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; @@ -844,20 +917,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 { @@ -865,54 +941,67 @@ 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) { + public Builder setDocumentName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentName_ = value; 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() { - + documentName_ = getDefaultInstance().getDocumentName(); 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) = { ... } + * + * * @param value The bytes for documentName to set. * @return This builder for chaining. */ - public Builder setDocumentNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentName_ = value; onChanged(); return this; @@ -920,6 +1009,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
@@ -927,13 +1018,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; @@ -942,6 +1033,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
@@ -949,15 +1042,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 { @@ -965,6 +1057,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
@@ -972,20 +1066,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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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
@@ -993,15 +1089,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); 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
@@ -1009,16 +1108,16 @@ 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1026,6 +1125,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
@@ -1033,13 +1134,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; @@ -1048,6 +1149,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
@@ -1055,15 +1158,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 { @@ -1071,6 +1173,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
@@ -1078,20 +1182,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) { + public Builder setSnippet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snippet_ = value; onChanged(); return this; } /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1099,15 +1205,18 @@ public Builder setSnippet(
      * 
* * string snippet = 3; + * * @return This builder for chaining. */ public Builder clearSnippet() { - + snippet_ = getDefaultInstance().getSnippet(); onChanged(); return this; } /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1115,28 +1224,31 @@ 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) { + public Builder setSnippetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snippet_ = value; onChanged(); 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 @@ -1144,30 +1256,36 @@ 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. */ public Builder setDocumentIsFolder(boolean value) { - + documentIsFolder_ = value; onChanged(); return this; } /** + * + * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; + * * @return This builder for chaining. */ public Builder clearDocumentIsFolder() { - + documentIsFolder_ = false; onChanged(); return this; @@ -1175,39 +1293,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1223,14 +1360,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(); onChanged(); @@ -1241,17 +1381,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1263,11 +1407,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() { if (updateTimeBuilder_ == null) { @@ -1281,48 +1429,64 @@ 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() { - + onChanged(); 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_; @@ -1330,39 +1494,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1378,14 +1561,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(); onChanged(); @@ -1396,17 +1582,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1418,11 +1608,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() { if (createTimeBuilder_ == null) { @@ -1436,48 +1630,64 @@ 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() { - + onChanged(); 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_; @@ -1485,39 +1695,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 deleteTimeBuilder_ != null || 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. */ 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) { @@ -1533,14 +1762,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(); onChanged(); @@ -1551,17 +1783,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 (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -1573,11 +1809,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() { if (deleteTimeBuilder_ == null) { @@ -1591,55 +1831,71 @@ 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() { - + onChanged(); 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1649,12 +1905,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(); } @@ -1663,27 +1919,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; @@ -1698,6 +1954,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 70% 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 6e787bcd1e70..de71ba359516 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,99 +105,135 @@ 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(); } 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 69% 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 216854037b71..268118e583af 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,32 +46,35 @@ private DocumentSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the document schema.
    * Format:
@@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -70,14 +92,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:
@@ -86,16 +109,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 { @@ -106,11 +128,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Name of the schema given by the user. Must be unique per customer.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -119,29 +144,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 customer.
    * 
* * 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 { @@ -150,74 +175,94 @@ public java.lang.String getDisplayName() { } public static final int PROPERTY_DEFINITIONS_FIELD_NUMBER = 3; - 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_; /** + * + * *
    * 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 +273,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 +289,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 +305,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 +322,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 +338,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 +354,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() { @@ -304,11 +371,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 7; private volatile java.lang.Object description_; /** + * + * *
    * Schema description.
    * 
* * string description = 7; + * * @return The description. */ @java.lang.Override @@ -317,29 +387,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 { @@ -348,6 +418,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,8 +430,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_); } @@ -398,20 +468,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_); @@ -424,33 +491,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; } @@ -471,8 +532,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(); @@ -489,129 +549,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(); @@ -646,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 @@ -667,7 +733,8 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -700,38 +767,39 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema 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.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; @@ -739,7 +807,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_; onChanged(); @@ -766,9 +835,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentSchema oth 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_); } @@ -813,59 +883,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 32 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + description_ = input.readStringRequireUtf8(); + + 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) { @@ -875,10 +949,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -887,13 +964,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; @@ -902,6 +979,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -910,15 +989,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 { @@ -926,6 +1004,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -934,20 +1014,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -956,15 +1038,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -973,16 +1058,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -990,18 +1075,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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; @@ -1010,20 +1097,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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 { @@ -1031,79 +1119,96 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per customer.
      * 
* * 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); 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_ & 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_; /** + * + * *
      * 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 { @@ -1111,11 +1216,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) { @@ -1125,13 +1233,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 { @@ -1139,11 +1251,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) { @@ -1160,14 +1275,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()); @@ -1178,13 +1297,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(); @@ -1198,11 +1321,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) { @@ -1219,11 +1345,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) { @@ -1237,14 +1366,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()); @@ -1255,18 +1388,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); @@ -1274,11 +1410,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) { @@ -1291,11 +1430,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) { @@ -1308,39 +1450,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 { @@ -1348,45 +1501,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_ & 0x00000001) != 0), getParentForChildren(), @@ -1396,14 +1566,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 @@ -1411,32 +1584,38 @@ 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. */ public Builder setDocumentIsFolder(boolean value) { - + documentIsFolder_ = value; onChanged(); 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() { - + documentIsFolder_ = false; onChanged(); return this; @@ -1444,39 +1623,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1492,14 +1690,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(); onChanged(); @@ -1510,17 +1711,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1532,11 +1737,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() { if (updateTimeBuilder_ == null) { @@ -1550,48 +1759,64 @@ 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() { - + onChanged(); 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_; @@ -1599,39 +1824,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1647,14 +1891,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(); onChanged(); @@ -1665,17 +1912,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1687,11 +1938,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() { if (createTimeBuilder_ == null) { @@ -1705,48 +1960,64 @@ 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() { - + onChanged(); 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_; @@ -1754,18 +2025,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; @@ -1774,20 +2047,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 { @@ -1795,61 +2069,68 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Schema description.
      * 
* * string description = 7; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1859,12 +2140,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(); } @@ -1873,27 +2154,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; @@ -1908,6 +2189,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 4daba0266261..7a7528eb8b73 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -16,10 +34,13 @@ public interface DocumentSchemaOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the document schema.
    * Format:
@@ -28,157 +49,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 customer.
    * 
* * 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 customer.
    * 
* * 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..414e6c419710 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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_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\"\252\003\n\016DocumentSche" + + "ma\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022R\n\024property_definitions\030\003 \003(\01324.goog" + + "le.cloud.contentwarehouse.v1.PropertyDef" + + "inition\022\032\n\022document_is_folder\030\004 \001(\010\0224\n\013u" + + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\023\n\013description\030\007" + + " \001(\t:~\352A{\n.contentwarehouse.googleapis.c" + + "om/DocumentSchema\022Iprojects/{project}/lo" + + "cations/{location}/documentSchemas/{docu" + + "ment_schema}\"\343\006\n\022PropertyDefinition\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\014 \001(\t\022\025\n\r" + + "is_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_metadata" + + "\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022T\n\024integer_t" + + "ype_options\030\007 \001(\01324.google.cloud.content" + + "warehouse.v1.IntegerTypeOptionsH\000\022P\n\022flo" + + "at_type_options\030\010 \001(\01322.google.cloud.con" + + "tentwarehouse.v1.FloatTypeOptionsH\000\022N\n\021t" + + "ext_type_options\030\t \001(\01321.google.cloud.co" + + "ntentwarehouse.v1.TextTypeOptionsH\000\022V\n\025p" + + "roperty_type_options\030\n \001(\01325.google.clou" + + "d.contentwarehouse.v1.PropertyTypeOption" + + "sH\000\022N\n\021enum_type_options\030\013 \001(\01321.google." + + "cloud.contentwarehouse.v1.EnumTypeOption" + + "sH\000\022W\n\026date_time_type_options\030\r \001(\01325.go" + + "ogle.cloud.contentwarehouse.v1.DateTimeT" + + "ypeOptionsH\000\022L\n\020map_type_options\030\017 \001(\01320" + + ".google.cloud.contentwarehouse.v1.MapTyp" + + "eOptionsH\000\022X\n\026timestamp_type_options\030\020 \001" + + "(\01326.google.cloud.contentwarehouse.v1.Ti" + + "mestampTypeOptionsH\000B\024\n\022value_type_optio" + + "ns\"\024\n\022IntegerTypeOptions\"\022\n\020FloatTypeOpt" + + "ions\"\021\n\017TextTypeOptions\"\025\n\023DateTimeTypeO" + + "ptions\"\020\n\016MapTypeOptions\"\026\n\024TimestampTyp" + + "eOptions\"n\n\023PropertyTypeOptions\022W\n\024prope" + + "rty_definitions\030\001 \003(\01324.google.cloud.con" + + "tentwarehouse.v1.PropertyDefinitionB\003\340A\002" + + "\"R\n\017EnumTypeOptions\022\034\n\017possible_values\030\001" + + " \003(\tB\003\340A\002\022!\n\031validation_check_disabled\030\002" + + " \001(\010B\217\001\n$com.google.cloud.contentwarehou" + + "se.v1B\023DocumentSchemaProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/conten" + + "twarehouse/v1;contentwarehouseb\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", + "IntegerTypeOptions", + "FloatTypeOptions", + "TextTypeOptions", + "PropertyTypeOptions", + "EnumTypeOptions", + "DateTimeTypeOptions", + "MapTypeOptions", + "TimestampTypeOptions", + "ValueTypeOptions", + }); + 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..3edabc18c1ce --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java @@ -0,0 +1,204 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\"\257\001\n\033CreateDocumentSch" + + "emaRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(cont" + + "entwarehouse.googleapis.com/Location\022N\n\017" + + "document_schema\030\002 \001(\01320.google.cloud.con" + + "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"`\n\030" + + "GetDocumentSchemaRequest\022D\n\004name\030\001 \001(\tB6" + + "\340A\002\372A0\n.contentwarehouse.googleapis.com/" + + "DocumentSchema\"\263\001\n\033UpdateDocumentSchemaR" + + "equest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.contentwar" + + "ehouse.googleapis.com/DocumentSchema\022N\n\017" + + "document_schema\030\002 \001(\01320.google.cloud.con" + + "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"c\n\033" + + "DeleteDocumentSchemaRequest\022D\n\004name\030\001 \001(" + + "\tB6\340A\002\372A0\n.contentwarehouse.googleapis.c" + + "om/DocumentSchema\"\205\001\n\032ListDocumentSchema" + + "sRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(conten" + + "twarehouse.googleapis.com/Location\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\033Li" + + "stDocumentSchemasResponse\022J\n\020document_sc" + + "hemas\030\001 \003(\01320.google.cloud.contentwareho" + + "use.v1.DocumentSchema\022\027\n\017next_page_token" + + "\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022\356\001\n\024Cre" + + "ateDocumentSchema\022=.google.cloud.content" + + "warehouse.v1.CreateDocumentSchemaRequest" + + "\0320.google.cloud.contentwarehouse.v1.Docu" + + "mentSchema\"e\202\323\344\223\002F\"3/v1/{parent=projects" + + "/*/locations/*}/documentSchemas:\017documen" + + "t_schema\332A\026parent,document_schema\022\336\001\n\024Up" + + "dateDocumentSchema\022=.google.cloud.conten" + + "twarehouse.v1.UpdateDocumentSchemaReques" + + "t\0320.google.cloud.contentwarehouse.v1.Doc" + + "umentSchema\"U\202\323\344\223\002823/v1/{name=projects/" + + "*/locations/*/documentSchemas/*}:\001*\332A\024na" + + "me,document_schema\022\305\001\n\021GetDocumentSchema" + + "\022:.google.cloud.contentwarehouse.v1.GetD" + + "ocumentSchemaRequest\0320.google.cloud.cont" + + "entwarehouse.v1.DocumentSchema\"B\202\323\344\223\0025\0223" + + "/v1/{name=projects/*/locations/*/documen" + + "tSchemas/*}\332A\004name\022\261\001\n\024DeleteDocumentSch" + + "ema\022=.google.cloud.contentwarehouse.v1.D" + + "eleteDocumentSchemaRequest\032\026.google.prot" + + "obuf.Empty\"B\202\323\344\223\0025*3/v1/{name=projects/*" + + "/locations/*/documentSchemas/*}\332A\004name\022\330" + + "\001\n\023ListDocumentSchemas\022<.google.cloud.co" + + "ntentwarehouse.v1.ListDocumentSchemasReq" + + "uest\032=.google.cloud.contentwarehouse.v1." + + "ListDocumentSchemasResponse\"D\202\323\344\223\0025\0223/v1" + + "/{parent=projects/*/locations/*}/documen" + + "tSchemas\332A\006parent\032S\312A\037contentwarehouse.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\226\001\n$com.google.cl" + + "oud.contentwarehouse.v1B\032DocumentSchemaS" + + "erviceProtoP\001ZPgoogle.golang.org/genprot" + + "o/googleapis/cloud/contentwarehouse/v1;c" + + "ontentwarehouseb\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..cb3cda5854be --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java @@ -0,0 +1,276 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\033google/protobu" + + "f/empty.proto\"\354\001\n\026CreateDocumentResponse" + + "\022<\n\010document\030\001 \001(\0132*.google.cloud.conten" + + "twarehouse.v1.Document\022N\n\022rule_engine_ou" + + "tput\030\002 \001(\01322.google.cloud.contentwarehou" + + "se.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\013" + + "22.google.cloud.contentwarehouse.v1.Resp" + + "onseMetadata\"\354\001\n\026UpdateDocumentResponse\022" + + "<\n\010document\030\001 \001(\0132*.google.cloud.content" + + "warehouse.v1.Document\022N\n\022rule_engine_out" + + "put\030\002 \001(\01322.google.cloud.contentwarehous" + + "e.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\0132" + + "2.google.cloud.contentwarehouse.v1.Respo" + + "nseMetadata\"\243\001\n\010QAResult\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\"\374\003\n\027SearchDocumentsRes" + + "ponse\022f\n\022matching_documents\030\001 \003(\0132J.goog" + + "le.cloud.contentwarehouse.v1.SearchDocum" + + "entsResponse.MatchingDocument\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\022D\n\010me" + + "tadata\030\004 \001(\01322.google.cloud.contentwareh" + + "ouse.v1.ResponseMetadata\022W\n\027histogram_qu" + + "ery_results\030\006 \003(\01326.google.cloud.content" + + "warehouse.v1.HistogramQueryResult\032\254\001\n\020Ma" + + "tchingDocument\022<\n\010document\030\001 \001(\0132*.googl" + + "e.cloud.contentwarehouse.v1.Document\022\033\n\023" + + "search_text_snippet\030\002 \001(\t\022=\n\tqa_result\030\003" + + " \001(\0132*.google.cloud.contentwarehouse.v1." + + "QAResult\"\177\n\020FetchAclResponse\022%\n\006policy\030\001" + + " \001(\0132\025.google.iam.v1.Policy\022D\n\010metadata\030" + + "\002 \001(\01322.google.cloud.contentwarehouse.v1" + + ".ResponseMetadata\"}\n\016SetAclResponse\022%\n\006p" + + "olicy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010me" + + "tadata\030\002 \001(\01322.google.cloud.contentwareh" + + "ouse.v1.ResponseMetadata2\350\r\n\017DocumentSer" + + "vice\022\317\001\n\016CreateDocument\0227.google.cloud.c" + + "ontentwarehouse.v1.CreateDocumentRequest" + + "\0328.google.cloud.contentwarehouse.v1.Crea" + + "teDocumentResponse\"J\202\323\344\223\0022\"-/v1/{parent=" + + "projects/*/locations/*}/documents:\001*\332A\017p" + + "arent,document\022\371\001\n\013GetDocument\0224.google." + + "cloud.contentwarehouse.v1.GetDocumentReq" + + "uest\032*.google.cloud.contentwarehouse.v1." + + "Document\"\207\001\202\323\344\223\002z\"1/v1/{name=projects/*/" + + "locations/*/documents/*}:get:\001*ZB\"=/v1/{" + + "name=projects/*/locations/*/documents/re" + + "ferenceId/*}:get:\001*\332A\004name\022\216\002\n\016UpdateDoc" + + "ument\0227.google.cloud.contentwarehouse.v1" + + ".UpdateDocumentRequest\0328.google.cloud.co" + + "ntentwarehouse.v1.UpdateDocumentResponse" + + "\"\210\001\202\323\344\223\002r2-/v1/{name=projects/*/location" + + "s/*/documents/*}:\001*Z>29/v1/{name=project" + + "s/*/locations/*/documents/referenceId/*}" + + ":\001*\332A\rname,document\022\362\001\n\016DeleteDocument\0227" + + ".google.cloud.contentwarehouse.v1.Delete" + + "DocumentRequest\032\026.google.protobuf.Empty\"" + + "\216\001\202\323\344\223\002\200\001\"4/v1/{name=projects/*/location" + + "s/*/documents/*}:delete:\001*ZE\"@/v1/{name=" + + "projects/*/locations/*/documents/referen" + + "ceId/*}:delete:\001*\332A\004name\022\320\001\n\017SearchDocum" + + "ents\0228.google.cloud.contentwarehouse.v1." + + "SearchDocumentsRequest\0329.google.cloud.co" + + "ntentwarehouse.v1.SearchDocumentsRespons" + + "e\"H\202\323\344\223\0029\"4/v1/{parent=projects/*/locati" + + "ons/*}/documents:search:\001*\332A\006parent\022\354\001\n\010" + + "FetchAcl\0221.google.cloud.contentwarehouse" + + ".v1.FetchAclRequest\0322.google.cloud.conte" + + "ntwarehouse.v1.FetchAclResponse\"y\202\323\344\223\002h\"" + + ":/v1/{resource=projects/*/locations/*/do" + + "cuments/*}:fetchAcl:\001*Z\'\"\"/v1/{resource=" + + "projects/*}:fetchAcl:\001*\332A\010resource\022\351\001\n\006S" + + "etAcl\022/.google.cloud.contentwarehouse.v1" + + ".SetAclRequest\0320.google.cloud.contentwar" + + "ehouse.v1.SetAclResponse\"|\202\323\344\223\002d\"8/v1/{r" + + "esource=projects/*/locations/*/documents" + + "/*}:setAcl:\001*Z%\" /v1/{resource=projects/" + + "*}:setAcl:\001*\332A\017resource,policy\032S\312A\037conte" + + "ntwarehouse.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformB\220\001\n$" + + "com.google.cloud.contentwarehouse.v1B\024Do" + + "cumentServiceProtoP\001ZPgoogle.golang.org/" + + "genproto/googleapis/cloud/contentwarehou" + + "se/v1;contentwarehouseb\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.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", + }); + 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", + }); + 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.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..32cccbe95280 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java @@ -0,0 +1,264 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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_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\"\234\003\n\025Cr" + + "eateDocumentRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" + + "\372A*\n(contentwarehouse.googleapis.com/Loc" + + "ation\022A\n\010document\030\002 \001(\0132*.google.cloud.c" + + "ontentwarehouse.v1.DocumentB\003\340A\002\022K\n\020requ" + + "est_metadata\030\003 \001(\01321.google.cloud.conten" + + "twarehouse.v1.RequestMetadata\022%\n\006policy\030" + + "\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_ai" + + "_document_option\030\005 \001(\01327.google.cloud.co" + + "ntentwarehouse.v1.CloudAIDocumentOption\022" + + "/\n\013create_mask\030\006 \001(\0132\032.google.protobuf.F" + + "ieldMask\"\241\001\n\022GetDocumentRequest\022>\n\004name\030" + + "\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.googleap" + + "is.com/Document\022K\n\020request_metadata\030\002 \001(" + + "\01321.google.cloud.contentwarehouse.v1.Req" + + "uestMetadata\"\213\003\n\025UpdateDocumentRequest\022>" + + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.g" + + "oogleapis.com/Document\022A\n\010document\030\002 \001(\013" + + "2*.google.cloud.contentwarehouse.v1.Docu" + + "mentB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" + + "ogle.cloud.contentwarehouse.v1.RequestMe" + + "tadata\022Y\n\030cloud_ai_document_option\030\005 \001(\013" + + "27.google.cloud.contentwarehouse.v1.Clou" + + "dAIDocumentOption\022G\n\016update_options\030\006 \001(" + + "\0132/.google.cloud.contentwarehouse.v1.Upd" + + "ateOptions\"\244\001\n\025DeleteDocumentRequest\022>\n\004" + + "name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.goo" + + "gleapis.com/Document\022K\n\020request_metadata" + + "\030\002 \001(\01321.google.cloud.contentwarehouse.v" + + "1.RequestMetadata\"\271\003\n\026SearchDocumentsReq" + + "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwar" + + "ehouse.googleapis.com/Location\022K\n\020reques" + + "t_metadata\030\003 \001(\01321.google.cloud.contentw" + + "arehouse.v1.RequestMetadata\022G\n\016document_" + + "query\030\004 \001(\0132/.google.cloud.contentwareho" + + "use.v1.DocumentQuery\022\016\n\006offset\030\005 \001(\005\022\021\n\t" + + "page_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001(\t\022\020\n\010o" + + "rder_by\030\010 \001(\t\022K\n\021histogram_queries\030\t \003(\013" + + "20.google.cloud.contentwarehouse.v1.Hist" + + "ogramQuery\022\032\n\022require_total_size\030\n \001(\010\022\025" + + "\n\rqa_size_limit\030\013 \001(\005\"\214\001\n\017FetchAclReques" + + "t\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022K\n\020request_meta" + + "data\030\002 \001(\01321.google.cloud.contentwarehou" + + "se.v1.RequestMetadata\022\025\n\rproject_owner\030\003" + + " \001(\010\"\266\001\n\rSetAclRequest\022\025\n\010resource\030\001 \001(\t" + + "B\003\340A\002\022*\n\006policy\030\002 \001(\0132\025.google.iam.v1.Po" + + "licyB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" + + "ogle.cloud.contentwarehouse.v1.RequestMe" + + "tadata\022\025\n\rproject_owner\030\004 \001(\010B\227\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\033Document" + + "ServiceRequestProtoP\001ZPgoogle.golang.org" + + "/genproto/googleapis/cloud/contentwareho" + + "use/v1;contentwarehouseb\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", + "QaSizeLimit", + }); + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + 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(7); + 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 e65fe9df1b95..cd222931fec7 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,84 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnumArray(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private com.google.protobuf.LazyStringList values_; /** + * + * *
    * 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. */ @@ -86,20 +113,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; @@ -111,8 +141,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)); } @@ -141,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.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; } @@ -170,130 +199,136 @@ 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(); @@ -303,9 +338,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_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 @@ -324,7 +359,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); + com.google.cloud.contentwarehouse.v1.EnumArray result = + new com.google.cloud.contentwarehouse.v1.EnumArray(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -339,38 +375,39 @@ public com.google.cloud.contentwarehouse.v1.EnumArray 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.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; @@ -415,18 +452,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) { @@ -436,44 +475,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); 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() { return values_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -481,80 +531,90 @@ 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) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); 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) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); 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_); onChanged(); return this; } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -564,28 +624,30 @@ public Builder clearValues() { 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) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,12 +657,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(); } @@ -609,27 +671,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; @@ -644,6 +706,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..19bd9c8ec58b 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 71% 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 2d65911c28b3..89f9791e6582 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,84 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnumTypeOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private com.google.protobuf.LazyStringList possibleValues_; /** + * + * *
    * 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. */ @@ -86,22 +113,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_; /** + * + * *
    * Make sure the Enum property value provided in the document is in the
    * possile value list during document creation. The validation check runs by
@@ -109,6 +140,7 @@ public java.lang.String getPossibleValues(int index) {
    * 
* * bool validation_check_disabled = 2; + * * @return The validationCheckDisabled. */ @java.lang.Override @@ -117,6 +149,7 @@ public boolean getValidationCheckDisabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,8 +161,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)); } @@ -154,8 +186,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; @@ -165,17 +196,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; } @@ -192,137 +222,142 @@ 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(); @@ -334,9 +369,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_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,7 +390,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); + com.google.cloud.contentwarehouse.v1.EnumTypeOptions result = + new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { possibleValues_ = possibleValues_.getUnmodifiableView(); @@ -371,38 +407,39 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions 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.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; @@ -410,7 +447,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_; @@ -450,23 +488,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(); - - 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(); + + 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) { @@ -476,44 +517,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList possibleValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList possibleValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePossibleValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { possibleValues_ = new com.google.protobuf.LazyStringArrayList(possibleValues_); 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() { return possibleValues_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -521,80 +573,90 @@ 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) { + public Builder setPossibleValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePossibleValuesIsMutable(); + throw new NullPointerException(); + } + ensurePossibleValuesIsMutable(); possibleValues_.set(index, value); onChanged(); 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) { + public Builder addPossibleValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePossibleValuesIsMutable(); + throw new NullPointerException(); + } + ensurePossibleValuesIsMutable(); possibleValues_.add(value); onChanged(); 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_); 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() { @@ -604,28 +666,32 @@ public Builder clearPossibleValues() { 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) { + public Builder addPossibleValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePossibleValuesIsMutable(); possibleValues_.add(value); onChanged(); 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
@@ -633,6 +699,7 @@ public Builder addPossibleValuesBytes(
      * 
* * bool validation_check_disabled = 2; + * * @return The validationCheckDisabled. */ @java.lang.Override @@ -640,6 +707,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
@@ -647,16 +716,19 @@ public boolean getValidationCheckDisabled() {
      * 
* * bool validation_check_disabled = 2; + * * @param value The validationCheckDisabled to set. * @return This builder for chaining. */ public Builder setValidationCheckDisabled(boolean value) { - + validationCheckDisabled_ = value; onChanged(); 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
@@ -664,17 +736,18 @@ public Builder setValidationCheckDisabled(boolean value) {
      * 
* * bool validation_check_disabled = 2; + * * @return This builder for chaining. */ public Builder clearValidationCheckDisabled() { - + validationCheckDisabled_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -684,12 +757,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(); } @@ -698,27 +771,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; @@ -733,6 +806,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..5137a7bdc732 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 65% 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 e91aa4619145..e3615bc8aa61 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,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -65,30 +87,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 { @@ -97,6 +119,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,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_); } @@ -133,15 +155,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; } @@ -160,130 +182,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(); @@ -293,9 +321,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 @@ -314,7 +342,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); + com.google.cloud.contentwarehouse.v1.EnumValue result = + new com.google.cloud.contentwarehouse.v1.EnumValue(this); result.value_ = value_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.contentwarehouse.v1.EnumValue 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.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; @@ -394,17 +424,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +449,21 @@ public Builder mergeFrom( 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; @@ -438,21 +472,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 { @@ -460,64 +495,71 @@ 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) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; 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() { - + value_ = getDefaultInstance().getValue(); onChanged(); 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) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + 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); } @@ -527,12 +569,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(); } @@ -541,27 +583,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; @@ -576,6 +618,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..15b36d6be203 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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/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 36edec33d1b5..e55f3c156a1d 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object resource_; /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -59,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ @java.lang.Override @@ -67,14 +89,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 +106,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 +125,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 +141,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 +169,23 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 3;
   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 @@ -158,6 +194,7 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +206,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 +229,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 +242,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,137 +274,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 +427,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,7 +448,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); + com.google.cloud.contentwarehouse.v1.FetchAclRequest result = + new com.google.cloud.contentwarehouse.v1.FetchAclRequest(this); result.resource_ = resource_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -427,38 +465,39 @@ public com.google.cloud.contentwarehouse.v1.FetchAclRequest 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.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; @@ -466,7 +505,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_; onChanged(); @@ -503,29 +543,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 24: { - projectOwner_ = input.readBool(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + projectOwner_ = input.readBool(); + + 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) { @@ -538,6 +580,8 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -546,13 +590,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; @@ -561,6 +605,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -569,15 +615,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 { @@ -585,6 +630,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -593,20 +640,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) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -615,15 +664,18 @@ public Builder setResource(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -632,16 +684,16 @@ 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) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -649,36 +701,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -700,6 +765,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.
@@ -719,6 +786,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -726,11 +795,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -742,6 +814,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.
@@ -761,6 +835,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -768,12 +844,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -781,15 +860,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.
@@ -798,27 +881,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 @@ -826,39 +915,45 @@ 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. */ public Builder setProjectOwner(boolean value) { - + projectOwner_ = value; onChanged(); 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() { - + projectOwner_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,12 +963,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(); } @@ -882,27 +977,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; @@ -917,6 +1012,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 75% 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 dd0b341f1608..a6182fb31c13 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -16,10 +34,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:
@@ -28,32 +49,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.
@@ -64,12 +93,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 70% 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 f70fd758bf13..d1cbc34d7e65 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,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -62,11 +83,14 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ @java.lang.Override @@ -74,6 +98,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * The IAM policy.
    * 
@@ -88,12 +114,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 @@ -101,19 +130,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.
@@ -127,6 +163,7 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -138,8 +175,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());
     }
@@ -156,12 +192,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;
@@ -171,22 +205,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;
@@ -213,129 +246,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(); @@ -355,9 +395,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 @@ -376,7 +416,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); + com.google.cloud.contentwarehouse.v1.FetchAclResponse result = + new com.google.cloud.contentwarehouse.v1.FetchAclResponse(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -395,38 +436,39 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse 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.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; @@ -434,7 +476,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()); } @@ -467,26 +510,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - 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); + + break; + } // case 10 + case 18: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + + 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 +541,33 @@ public Builder mergeFrom( 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 policyBuilder_ != null || policy_ != null; } /** + * + * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -527,6 +578,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * The IAM policy.
      * 
@@ -547,14 +600,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(); onChanged(); @@ -565,6 +619,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * The IAM policy.
      * 
@@ -574,8 +630,7 @@ public Builder setPolicy( public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { - policy_ = - com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -587,6 +642,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
      * The IAM policy.
      * 
@@ -605,6 +662,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * The IAM policy.
      * 
@@ -612,11 +671,13 @@ public Builder clearPolicy() { * .google.iam.v1.Policy policy = 1; */ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The IAM policy.
      * 
@@ -627,11 +688,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.
      * 
@@ -639,14 +701,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_; @@ -654,36 +718,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 metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * 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.
@@ -705,6 +782,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -724,6 +803,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -735,7 +816,9 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           metadata_ = value;
         }
@@ -747,6 +830,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -766,6 +851,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -774,11 +861,13 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -790,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.
@@ -803,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);
     }
 
@@ -827,12 +922,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();
   }
@@ -841,27 +936,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;
@@ -876,6 +971,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..fad6ccd7fcc8 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 65%
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 0b992d325fd4..545637abeaef 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,63 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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.
      * 
@@ -66,6 +88,8 @@ public enum FileType */ FILE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Returns all document types, including folders.
      * 
@@ -74,6 +98,8 @@ public enum FileType */ ALL(1), /** + * + * *
      * Returns only folders.
      * 
@@ -82,6 +108,8 @@ public enum FileType */ FOLDER(2), /** + * + * *
      * Returns only non-folder documents.
      * 
@@ -93,6 +121,8 @@ public enum FileType ; /** + * + * *
      * Default document type. If set, disables the filter.
      * 
@@ -101,6 +131,8 @@ public enum FileType */ public static final int FILE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Returns all document types, including folders.
      * 
@@ -109,6 +141,8 @@ public enum FileType */ public static final int ALL_VALUE = 1; /** + * + * *
      * Returns only folders.
      * 
@@ -117,6 +151,8 @@ public enum FileType */ public static final int FOLDER_VALUE = 2; /** + * + * *
      * Returns only non-folder documents.
      * 
@@ -125,7 +161,6 @@ public enum FileType */ public static final int DOCUMENT_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -150,50 +185,53 @@ 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; + 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; @@ -213,31 +251,43 @@ private FileType(int value) { public static final int FILE_TYPE_FIELD_NUMBER = 1; private int fileType_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.valueOf(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.valueOf(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; @@ -249,9 +299,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); @@ -263,9 +314,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; @@ -275,12 +327,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; @@ -302,129 +355,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(); @@ -434,9 +493,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 @@ -455,7 +514,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); + com.google.cloud.contentwarehouse.v1.FileTypeFilter result = + new com.google.cloud.contentwarehouse.v1.FileTypeFilter(this); result.fileType_ = fileType_; onBuilt(); return result; @@ -465,38 +525,39 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.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; @@ -504,7 +565,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()); } @@ -534,17 +596,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - fileType_ = input.readEnum(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + fileType_ = input.readEnum(); + + 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) { @@ -557,51 +621,67 @@ public Builder mergeFrom( 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. */ public Builder setFileTypeValue(int value) { - + fileType_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.valueOf(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.valueOf(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. */ @@ -609,28 +689,31 @@ public Builder setFileType(com.google.cloud.contentwarehouse.v1.FileTypeFilter.F if (value == null) { throw new NullPointerException(); } - + fileType_ = value.getNumber(); onChanged(); 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() { - + fileType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -640,12 +723,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(); } @@ -654,27 +737,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; @@ -689,6 +772,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..e3f0c2c8fd9a 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..394ff4784780 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java @@ -0,0 +1,145 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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; + + 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\"\245\003\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\025\n\rquery_conte" + + "xt\030\n \003(\t\022\037\n\027document_creator_filter\030\013 \003(" + + "\t\"\316\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\"I\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\"v\n\016PropertyFilter\022Q\n\024document" + + "_schema_name\030\001 \001(\tB3\372A0\n.contentwarehous" + + "e.googleapis.com/DocumentSchema\022\021\n\tcondi" + + "tion\030\002 \001(\t\"\250\001\n\016FileTypeFilter\022L\n\tfile_ty" + + "pe\030\001 \001(\01629.google.cloud.contentwarehouse" + + ".v1.FileTypeFilter.FileType\"H\n\010FileType\022" + + "\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006F" + + "OLDER\020\002\022\014\n\010DOCUMENT\020\003B\210\001\n$com.google.clo" + + "ud.contentwarehouse.v1B\014FiltersProtoP\001ZP" + + "google.golang.org/genproto/googleapis/cl" + + "oud/contentwarehouse/v1;contentwarehouse" + + "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", + "QueryContext", + "DocumentCreatorFilter", + }); + 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", + }); + 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 9453e48e12d0..fbafb30b4ef4 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,94 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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; @@ -100,8 +129,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); @@ -125,8 +153,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; } @@ -138,15 +165,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; } @@ -167,130 +194,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(); @@ -300,9 +333,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 @@ -321,7 +354,8 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); @@ -336,38 +370,39 @@ public com.google.cloud.contentwarehouse.v1.FloatArray 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.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; @@ -375,7 +410,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_; @@ -412,28 +448,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) { @@ -443,45 +482,56 @@ 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_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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. */ @@ -489,28 +539,33 @@ 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); onChanged(); return this; } /** + * + * *
      * List of float values.
      * 
* * repeated float values = 1; + * * @param value The values to add. * @return This builder for chaining. */ @@ -521,28 +576,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() { @@ -551,9 +610,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); } @@ -563,12 +622,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(); } @@ -577,27 +636,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; @@ -612,6 +671,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..af018fae596f 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 f0db6963a407..63e8a563faee 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,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +258,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 @@ -253,7 +279,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; } @@ -262,38 +289,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; @@ -301,7 +329,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; @@ -328,12 +357,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) { @@ -343,9 +373,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); } @@ -355,12 +385,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(); } @@ -369,27 +399,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; @@ -404,6 +434,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..a722cfa80710 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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/GetDocumentRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.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/GetDocumentRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java index aee5827c2ea6..6ed24e58154d 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -58,7 +79,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 @@ -67,14 +91,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:
@@ -82,17 +107,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 { @@ -103,12 +129,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 @@ -116,19 +145,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,11 +173,13 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -153,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(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -174,8 +211,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;
@@ -185,19 +221,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;
@@ -222,129 +257,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(); @@ -360,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_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 @@ -381,7 +423,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); + com.google.cloud.contentwarehouse.v1.GetDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.GetDocumentRequest(this); result.name_ = name_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -396,38 +439,39 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentRequest 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.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; @@ -435,7 +479,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_; onChanged(); @@ -469,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + 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,6 +545,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -506,14 +554,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; @@ -522,6 +572,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -529,16 +581,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 { @@ -546,6 +599,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -553,21 +608,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -575,16 +634,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -592,17 +656,19 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -610,36 +676,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -661,6 +740,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.
@@ -680,6 +761,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -687,11 +770,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -703,6 +789,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.
@@ -722,6 +810,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -729,12 +819,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -742,15 +835,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.
@@ -759,21 +856,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);
     }
 
@@ -783,12 +883,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();
   }
@@ -797,27 +897,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;
@@ -832,6 +932,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..77601bcd6d7d 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 d8e4930376b3..f8cb7433527f 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,61 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -64,29 +88,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 { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,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 +157,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; } @@ -159,129 +185,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(); @@ -291,13 +324,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(); } @@ -312,7 +346,8 @@ 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); + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +357,39 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -361,7 +397,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_; onChanged(); @@ -392,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -415,18 +455,22 @@ public Builder mergeFrom( 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; @@ -435,20 +479,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 { @@ -456,61 +503,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +580,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(); } @@ -534,27 +595,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; @@ -569,6 +630,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..b8225b49517c --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 63% 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 efd2be45bfc9..108b6f777fa8 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,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,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_); } @@ -135,15 +161,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; } @@ -163,129 +189,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(); @@ -295,9 +328,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 @@ -316,7 +349,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); + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +360,39 @@ public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest 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.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; @@ -365,7 +400,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_; onChanged(); @@ -396,17 +432,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -419,20 +457,24 @@ public Builder mergeFrom( 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; @@ -441,22 +483,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 { @@ -464,67 +509,80 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +592,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(); } @@ -548,27 +606,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; @@ -583,6 +641,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..d08e79caf0b0 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 63% 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 af11a38746c8..2b508f9582fe 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,54 +28,61 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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;
   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 @@ -67,31 +91,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 { @@ -100,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +138,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_); } @@ -136,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.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; } @@ -164,96 +190,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.
@@ -261,33 +295,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();
@@ -297,9 +330,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
@@ -318,7 +351,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);
+      com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest result =
+          new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -328,38 +362,39 @@ public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest 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.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;
@@ -367,7 +402,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_;
         onChanged();
@@ -398,17 +434,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                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) {
@@ -421,20 +459,24 @@ public Builder mergeFrom(
 
     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; @@ -443,22 +485,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 { @@ -466,67 +511,80 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -536,12 +594,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(); } @@ -550,27 +608,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; @@ -585,6 +643,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..a89bccabfe12 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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..90e8fd1c7ee2 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java @@ -0,0 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\"\250\001\n\016HistogramQu" + + "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" + + "precise_result_size\030\002 \001(\010\022X\n\007filters\030\003 \001" + + "(\0132B.google.cloud.contentwarehouse.v1.Hi" + + "stogramQueryPropertyNameFilterB\003\340A\001\"\272\002\n " + + "HistogramQueryPropertyNameFilter\022M\n\020docu" + + "ment_schemas\030\001 \003(\tB3\372A0\n.contentwarehous" + + "e.googleapis.com/DocumentSchema\022\026\n\016prope" + + "rty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.google" + + ".cloud.contentwarehouse.v1.HistogramQuer" + + "yPropertyNameFilter.HistogramYAxis\"L\n\016Hi" + + "stogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMENT" + + "\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024His" + + "togramQueryResult\022\027\n\017histogram_query\030\001 \001" + + "(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.con" + + "tentwarehouse.v1.HistogramQueryResult.Hi" + + "stogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\212\001\n$com.google.cl" + + "oud.contentwarehouse.v1B\016HistogramProtoP" + + "\001ZPgoogle.golang.org/genproto/googleapis" + + "/cloud/contentwarehouse/v1;contentwareho" + + "useb\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 7a9282901b34..d3ac69487154 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object histogramQuery_; /** + * + * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ @java.lang.Override @@ -66,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.
@@ -81,16 +104,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 { @@ -101,6 +123,8 @@ public java.lang.String getHistogramQuery() { public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 2; private boolean requirePreciseResultSize_; /** + * + * *
    * Controls if the histogram query requires the return of a precise count.
    * Enable this flag may adversely impact performance.
@@ -108,6 +132,7 @@ public java.lang.String getHistogramQuery() {
    * 
* * bool require_precise_result_size = 2; + * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -118,6 +143,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').
@@ -126,7 +153,10 @@ public boolean getRequirePreciseResultSize() {
    * 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 @@ -134,6 +164,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').
@@ -142,14 +174,21 @@ public boolean hasFilters() {
    * 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').
@@ -158,14 +197,18 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
    * 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() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder + getFiltersOrBuilder() { return getFilters(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +220,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 +243,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 +256,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 +284,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,129 +295,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 +441,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,7 +462,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); + com.google.cloud.contentwarehouse.v1.HistogramQuery result = + new com.google.cloud.contentwarehouse.v1.HistogramQuery(this); result.histogramQuery_ = histogramQuery_; result.requirePreciseResultSize_ = requirePreciseResultSize_; if (filtersBuilder_ == null) { @@ -435,38 +479,39 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery 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.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; @@ -474,7 +519,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_; onChanged(); @@ -511,29 +557,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - histogramQuery_ = input.readStringRequireUtf8(); + case 10: + { + histogramQuery_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - requirePreciseResultSize_ = input.readBool(); + break; + } // case 10 + case 16: + { + requirePreciseResultSize_ = input.readBool(); - break; - } // case 16 - case 26: { - input.readMessage( - getFiltersFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 16 + case 26: + { + input.readMessage(getFiltersFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -546,6 +594,8 @@ public Builder mergeFrom( private java.lang.Object histogramQuery_ = ""; /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -553,13 +603,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; @@ -568,6 +618,8 @@ public java.lang.String getHistogramQuery() { } } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -575,15 +627,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 { @@ -591,6 +642,8 @@ public java.lang.String getHistogramQuery() { } } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -598,20 +651,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) { + public Builder setHistogramQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + histogramQuery_ = value; onChanged(); return this; } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -619,15 +674,18 @@ public Builder setHistogramQuery(
      * 
* * string histogram_query = 1; + * * @return This builder for chaining. */ public Builder clearHistogramQuery() { - + histogramQuery_ = getDefaultInstance().getHistogramQuery(); onChanged(); return this; } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -635,23 +693,25 @@ 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) { + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + histogramQuery_ = value; onChanged(); 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.
@@ -659,6 +719,7 @@ public Builder setHistogramQueryBytes(
      * 
* * bool require_precise_result_size = 2; + * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -666,6 +727,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.
@@ -673,16 +736,19 @@ public boolean getRequirePreciseResultSize() {
      * 
* * bool require_precise_result_size = 2; + * * @param value The requirePreciseResultSize to set. * @return This builder for chaining. */ public Builder setRequirePreciseResultSize(boolean value) { - + requirePreciseResultSize_ = value; onChanged(); return this; } /** + * + * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -690,10 +756,11 @@ public Builder setRequirePreciseResultSize(boolean value) {
      * 
* * bool require_precise_result_size = 2; + * * @return This builder for chaining. */ public Builder clearRequirePreciseResultSize() { - + requirePreciseResultSize_ = false; onChanged(); return this; @@ -701,8 +768,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').
@@ -711,13 +783,18 @@ public Builder clearRequirePreciseResultSize() {
      * 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 filtersBuilder_ != null || filters_ != null; } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It only works
      * with histogram query count('FilterableProperties').
@@ -726,17 +803,25 @@ public boolean hasFilters() {
      * 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').
@@ -745,9 +830,12 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
      * 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(); @@ -761,6 +849,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').
@@ -769,10 +859,13 @@ public Builder setFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPro
      * 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(); onChanged(); @@ -783,6 +876,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').
@@ -791,13 +886,19 @@ public Builder setFilters(
      * 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 (filters_ != null) { filters_ = - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder(filters_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder( + filters_) + .mergeFrom(value) + .buildPartial(); } else { filters_ = value; } @@ -809,6 +910,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').
@@ -817,7 +920,9 @@ public Builder mergeFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryP
      * 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() { if (filtersBuilder_ == null) { @@ -831,6 +936,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').
@@ -839,14 +946,19 @@ public Builder clearFilters() {
      * 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() { + onChanged(); return getFiltersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It only works
      * with histogram query count('FilterableProperties').
@@ -855,17 +967,24 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Bui
      * 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').
@@ -874,24 +993,29 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBu
      * 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); } @@ -901,12 +1025,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(); } @@ -915,27 +1039,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; @@ -950,6 +1074,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 67% 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 d3fa85a50829..d37ebc01ecbb 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -15,10 +33,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.
@@ -26,12 +47,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.
@@ -39,11 +62,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').
@@ -52,11 +78,16 @@ public interface HistogramQueryOrBuilder extends
    * 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').
@@ -65,11 +96,16 @@ public interface HistogramQueryOrBuilder extends
    * 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').
@@ -78,7 +114,10 @@ public interface HistogramQueryOrBuilder extends
    * 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 72% 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 417cfb1da05a..f43c2dda5eec 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,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; propertyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -23,30 +38,33 @@ private HistogramQueryPropertyNameFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HistogramQueryPropertyNameFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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:
@@ -56,11 +74,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.
      * 
@@ -69,6 +89,8 @@ public enum HistogramYAxis */ HISTOGRAM_YAXIS_DOCUMENT(0), /** + * + * *
      * Count the properties per property name.
      * 
@@ -80,6 +102,8 @@ public enum HistogramYAxis ; /** + * + * *
      * Count the documents per property name.
      * 
@@ -88,6 +112,8 @@ public enum HistogramYAxis */ public static final int HISTOGRAM_YAXIS_DOCUMENT_VALUE = 0; /** + * + * *
      * Count the properties per property name.
      * 
@@ -96,7 +122,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( @@ -121,48 +146,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; @@ -182,6 +208,8 @@ private HistogramYAxis(int value) { public static final int DOCUMENT_SCHEMAS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList documentSchemas_; /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -193,13 +221,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] to run histogram query against.
@@ -211,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] to run histogram query against.
@@ -228,6 +261,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. */ @@ -235,6 +269,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] to run histogram query against.
@@ -246,17 +282,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; private com.google.protobuf.LazyStringList propertyNames_; /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -268,13 +306,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.
@@ -286,12 +326,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.
@@ -303,6 +346,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. */ @@ -310,6 +354,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.
@@ -321,44 +367,63 @@ 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_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + getYAxis() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.valueOf(yAxis_); - return result == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .valueOf(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; @@ -370,15 +435,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); @@ -406,9 +473,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; @@ -418,17 +487,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; @@ -457,125 +525,130 @@ 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(); @@ -589,14 +662,16 @@ 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_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 @@ -610,7 +685,8 @@ 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); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result = + new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { documentSchemas_ = documentSchemas_.getUnmodifiableView(); @@ -631,46 +707,51 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; @@ -720,29 +801,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(); + 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(); - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -752,16 +837,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList documentSchemas_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList documentSchemas_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDocumentSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { documentSchemas_ = new com.google.protobuf.LazyStringArrayList(documentSchemas_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -773,13 +863,15 @@ 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() { return documentSchemas_.getUnmodifiableView(); } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -791,12 +883,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] to run histogram query against.
@@ -808,6 +903,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. */ @@ -815,6 +911,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] to run histogram query against.
@@ -826,14 +924,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] to run histogram query against.
@@ -845,21 +945,23 @@ 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) { + public Builder setDocumentSchemas(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemasIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemasIsMutable(); documentSchemas_.set(index, value); onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -871,20 +973,22 @@ 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) { + public Builder addDocumentSchemas(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentSchemasIsMutable(); + throw new NullPointerException(); + } + ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -896,18 +1000,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -919,6 +1024,7 @@ public Builder addAllDocumentSchemas(
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemas() { @@ -928,6 +1034,8 @@ public Builder clearDocumentSchemas() { return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against.
@@ -939,29 +1047,33 @@ 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) { + public Builder addDocumentSchemasBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList propertyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList propertyNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePropertyNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { propertyNames_ = new com.google.protobuf.LazyStringArrayList(propertyNames_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -973,13 +1085,15 @@ 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() { return propertyNames_.getUnmodifiableView(); } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -991,12 +1105,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.
@@ -1008,6 +1125,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. */ @@ -1015,6 +1133,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.
@@ -1026,14 +1146,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.
@@ -1045,21 +1167,23 @@ 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) { + public Builder setPropertyNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePropertyNamesIsMutable(); + throw new NullPointerException(); + } + ensurePropertyNamesIsMutable(); propertyNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1071,20 +1195,22 @@ 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) { + public Builder addPropertyNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePropertyNamesIsMutable(); + throw new NullPointerException(); + } + ensurePropertyNamesIsMutable(); propertyNames_.add(value); onChanged(); return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1096,18 +1222,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1119,6 +1246,7 @@ public Builder addAllPropertyNames(
      * 
* * repeated string property_names = 2; + * * @return This builder for chaining. */ public Builder clearPropertyNames() { @@ -1128,6 +1256,8 @@ public Builder clearPropertyNames() { return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1139,15 +1269,15 @@ 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) { + public Builder addPropertyNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePropertyNamesIsMutable(); propertyNames_.add(value); onChanged(); @@ -1156,85 +1286,119 @@ 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. */ public Builder setYAxisValue(int value) { - + yAxis_ = value; onChanged(); 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() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + getYAxis() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.valueOf(yAxis_); - return result == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .valueOf(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(); } - + yAxis_ = value.getNumber(); onChanged(); 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() { - + yAxis_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,41 +1408,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; @@ -1290,9 +1456,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 857790b7eb47..c9aaa8c2e93c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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] to run histogram query against.
@@ -19,11 +37,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] to run histogram query against.
@@ -35,10 +55,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] to run histogram query against.
@@ -50,11 +73,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] to run histogram query against.
@@ -66,13 +92,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.
@@ -84,11 +112,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.
@@ -100,10 +130,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.
@@ -115,11 +148,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.
@@ -131,29 +167,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 63% 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 3ddd01eeaa6f..22d2314e3cbb 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,73 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Histogram result that matches [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified in searches.
  * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object histogramQuery_; /** + * + * *
    * Requested histogram expression.
    * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ @java.lang.Override @@ -76,29 +97,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 { @@ -107,24 +128,23 @@ 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); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> histogram_; - private com.google.protobuf.MapField - internalGetHistogram() { + 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); + } + + 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_; } @@ -133,6 +153,8 @@ 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.
@@ -142,22 +164,22 @@ 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.
@@ -168,11 +190,12 @@ public java.util.Map getHistogram() {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-
   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.
@@ -183,16 +206,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.
@@ -203,12 +226,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();
     }
@@ -216,6 +238,7 @@ public long getHistogramOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,17 +250,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);
   }
 
@@ -250,15 +268,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;
@@ -268,17 +286,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;
   }
@@ -302,151 +319,156 @@ 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 in searches.
    * 
* * 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(); @@ -457,9 +479,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 @@ -478,7 +500,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); + com.google.cloud.contentwarehouse.v1.HistogramQueryResult result = + new com.google.cloud.contentwarehouse.v1.HistogramQueryResult(this); int from_bitField0_ = bitField0_; result.histogramQuery_ = histogramQuery_; result.histogram_ = internalGetHistogram(); @@ -491,38 +514,39 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult 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.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; @@ -530,13 +554,13 @@ 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_; onChanged(); } - internalGetMutableHistogram().mergeFrom( - other.internalGetHistogram()); + internalGetMutableHistogram().mergeFrom(other.internalGetHistogram()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -563,25 +587,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - histogramQuery_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - histogram__ = input.readMessage( - HistogramDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableHistogram().getMutableMap().put( - histogram__.getKey(), histogram__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + histogramQuery_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry histogram__ = + input.readMessage( + HistogramDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHistogram() + .getMutableMap() + .put(histogram__.getKey(), histogram__.getValue()); + 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) { @@ -591,22 +620,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; @@ -615,20 +647,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 { @@ -636,75 +669,82 @@ 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) { + public Builder setHistogramQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + histogramQuery_ = value; onChanged(); return this; } /** + * + * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; + * * @return This builder for chaining. */ public Builder clearHistogramQuery() { - + histogramQuery_ = getDefaultInstance().getHistogramQuery(); onChanged(); 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) { + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + histogramQuery_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableHistogram() { + onChanged(); + ; 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(); @@ -716,6 +756,8 @@ 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.
@@ -725,22 +767,22 @@ 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.
@@ -751,11 +793,12 @@ public java.util.Map getHistogram() {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-
     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.
@@ -766,16 +809,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.
@@ -786,12 +829,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();
       }
@@ -799,11 +841,12 @@ public long getHistogramOrThrow(
     }
 
     public Builder clearHistogram() {
-      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.
@@ -813,23 +856,21 @@ 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() {
       return internalGetMutableHistogram().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -839,16 +880,17 @@ 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"); }
-      
-      internalGetMutableHistogram().getMutableMap()
-          .put(key, value);
+    public Builder putHistogram(java.lang.String key, long value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+
+      internalGetMutableHistogram().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -858,16 +900,13 @@ 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);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -877,12 +916,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();
   }
@@ -891,27 +930,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;
@@ -926,6 +965,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 415ec77494b2..dbd1a338b84f 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -39,6 +62,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.
@@ -48,15 +73,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.
@@ -66,9 +89,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.
@@ -78,11 +102,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.
@@ -92,7 +115,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/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 1e47f4b8a293..64d0659c23f5 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,94 +1,123 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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; @@ -100,8 +129,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); @@ -122,14 +150,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; } @@ -141,15 +167,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; } @@ -171,129 +197,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(); @@ -303,9 +335,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 @@ -324,7 +356,8 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); @@ -339,38 +372,39 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray 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.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; @@ -378,7 +412,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_; @@ -415,28 +450,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) { @@ -446,45 +484,56 @@ 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_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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. */ @@ -492,28 +541,33 @@ 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); onChanged(); return this; } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 values = 1; + * * @param value The values to add. * @return This builder for chaining. */ @@ -524,28 +578,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() { @@ -554,9 +612,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); } @@ -566,12 +624,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(); } @@ -580,27 +638,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; @@ -615,6 +673,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..61d09b105dda 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 65e789157fd0..de4fdb6aaaa9 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,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +258,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 @@ -253,7 +279,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; } @@ -262,38 +289,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; @@ -301,7 +329,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; @@ -328,12 +357,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) { @@ -343,9 +373,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); } @@ -355,12 +385,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(); } @@ -369,27 +399,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; @@ -404,6 +434,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..630818e60f7c --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 071038b94ed7..7f2ebc21c07c 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,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -63,11 +85,14 @@ public boolean hasRule() { return rule_ != null; } /** + * + * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ @java.lang.Override @@ -75,6 +100,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** + * + * *
    * Triggered rule.
    * 
@@ -89,11 +116,14 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** + * + * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; + * * @return The error. */ @java.lang.Override @@ -102,29 +132,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 { @@ -133,6 +163,7 @@ public java.lang.String getError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +175,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()); } @@ -162,8 +192,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_); @@ -176,20 +205,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; } @@ -212,130 +240,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(); @@ -351,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_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 @@ -372,7 +406,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); + com.google.cloud.contentwarehouse.v1.InvalidRule result = + new com.google.cloud.contentwarehouse.v1.InvalidRule(this); if (ruleBuilder_ == null) { result.rule_ = rule_; } else { @@ -387,38 +422,39 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule 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.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; @@ -426,7 +462,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()); } @@ -460,24 +497,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRuleFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - error_ = input.readStringRequireUtf8(); - - 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); + + break; + } // case 10 + case 18: + { + error_ = input.readStringRequireUtf8(); + + 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) { @@ -490,34 +528,47 @@ public Builder mergeFrom( 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 ruleBuilder_ != null || rule_ != null; } /** + * + * *
      * 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.
      * 
@@ -538,14 +589,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(); onChanged(); @@ -556,6 +608,8 @@ public Builder setRule( return this; } /** + * + * *
      * Triggered rule.
      * 
@@ -566,7 +620,9 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { if (rule_ != null) { rule_ = - com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_) + .mergeFrom(value) + .buildPartial(); } else { rule_ = value; } @@ -578,6 +634,8 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * Triggered rule.
      * 
@@ -596,6 +654,8 @@ public Builder clearRule() { return this; } /** + * + * *
      * Triggered rule.
      * 
@@ -603,11 +663,13 @@ public Builder clearRule() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { - + onChanged(); return getRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Triggered rule.
      * 
@@ -618,11 +680,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.
      * 
@@ -630,14 +695,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_; @@ -645,18 +713,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; @@ -665,20 +735,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 { @@ -686,61 +757,68 @@ 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) { + public Builder setError(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** + * + * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; + * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); 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) { + public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = 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); } @@ -750,12 +828,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(); } @@ -764,27 +842,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; @@ -799,6 +877,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..adf3deea7f4d 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 16d8e05c0f62..6ef5a00c5543 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,38 +44,44 @@ private ListDocumentSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDocumentSchemasRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,30 +90,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 { @@ -100,6 +126,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of document schemas to return. The service may return
    * fewer than this value.
@@ -108,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,6 +147,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -126,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -134,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.
@@ -150,16 +183,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 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +212,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 +235,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 +248,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; } @@ -253,129 +282,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(); @@ -389,13 +425,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(); } @@ -410,7 +447,8 @@ 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); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result = + new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -422,46 +460,50 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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_; onChanged(); @@ -499,27 +541,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -532,19 +578,23 @@ public Builder mergeFrom( 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; @@ -553,21 +603,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 { @@ -575,64 +628,79 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -641,6 +709,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -648,6 +717,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -656,16 +727,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -674,10 +748,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -685,6 +760,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.
@@ -693,13 +770,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; @@ -708,6 +785,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -716,15 +795,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 { @@ -732,6 +810,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -740,20 +820,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +844,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -779,23 +864,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,41 +890,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; @@ -851,9 +938,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 528273893ca4..0518e51e622e 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -51,10 +81,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.
@@ -63,8 +96,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 10d4d4f3c36c..daca930a48e8 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,32 +44,35 @@ private ListDocumentSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDocumentSchemasResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List documentSchemas_; /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -59,10 +80,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.
    * 
@@ -70,11 +94,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.
    * 
@@ -86,6 +112,8 @@ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in return documentSchemas_.get(index); } /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -112,12 +142,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -126,30 +159,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 { @@ -158,6 +191,7 @@ public java.lang.String getNextPageToken() { } 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 { for (int i = 0; i < documentSchemas_.size(); i++) { output.writeMessage(1, documentSchemas_.get(i)); } @@ -187,8 +220,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_); @@ -201,17 +233,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; } @@ -235,129 +266,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(); @@ -374,13 +412,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(); } @@ -395,7 +434,8 @@ 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); int from_bitField0_ = bitField0_; if (documentSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,46 +455,50 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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()) { @@ -473,9 +517,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_); } @@ -511,30 +556,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(); + 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(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -544,28 +592,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 { @@ -573,6 +631,8 @@ public java.util.List getDo } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -587,6 +647,8 @@ public int getDocumentSchemasCount() { } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -601,6 +663,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -622,6 +686,8 @@ public Builder setDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -640,6 +706,8 @@ public Builder setDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -660,6 +728,8 @@ public Builder addDocumentSchemas(com.google.cloud.contentwarehouse.v1.DocumentS return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -681,6 +751,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -699,6 +771,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -717,6 +791,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -727,8 +803,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); @@ -736,6 +811,8 @@ public Builder addAllDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -753,6 +830,8 @@ public Builder clearDocumentSchemas() { return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -770,6 +849,8 @@ public Builder removeDocumentSchemas(int index) { return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -781,6 +862,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -790,19 +873,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 { @@ -810,6 +896,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -817,10 +905,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.
      * 
@@ -829,26 +919,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(), @@ -860,19 +959,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; @@ -881,21 +982,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 { @@ -903,64 +1005,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,41 +1079,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; @@ -1016,9 +1127,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..65061d15f453 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 71% 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 2cf92d3a3ce7..6aab82ad8067 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,39 +44,45 @@ private ListLinkedSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -67,31 +91,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 { @@ -102,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of document-links to return. The service may return
    * fewer than this value.
@@ -110,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -120,6 +149,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -128,6 +159,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -136,14 +168,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 +185,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 +204,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 +220,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 +248,13 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -222,8 +266,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 +292,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 +308,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,129 +350,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(); @@ -454,13 +499,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(); } @@ -475,7 +521,8 @@ 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); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result = + new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -492,38 +539,39 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -531,7 +579,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_; onChanged(); @@ -572,34 +622,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -612,20 +665,24 @@ public Builder mergeFrom( 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; @@ -634,22 +691,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 { @@ -657,67 +717,82 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -726,6 +801,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -733,6 +809,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -741,16 +819,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -759,10 +840,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,6 +852,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.
@@ -778,13 +862,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; @@ -793,6 +877,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -801,15 +887,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 { @@ -817,6 +902,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -825,20 +912,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -847,15 +936,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -864,16 +956,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -881,36 +973,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -932,6 +1037,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.
@@ -951,6 +1058,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -958,11 +1067,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -974,6 +1086,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.
@@ -993,6 +1107,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1000,12 +1116,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1013,15 +1132,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.
@@ -1030,21 +1153,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);
     }
 
@@ -1054,12 +1180,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();
   }
@@ -1068,27 +1195,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;
@@ -1103,6 +1230,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 d390b69f1992..14c5da35ec00 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -40,11 +67,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.
@@ -53,10 +83,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.
@@ -65,32 +98,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 87229e40434e..2bcb0957c644 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,32 +44,35 @@ private ListLinkedSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List documentLinks_; /** + * + * *
    * Source document-links.
    * 
@@ -63,6 +84,8 @@ public java.util.List getDocu return documentLinks_; } /** + * + * *
    * Source document-links.
    * 
@@ -70,11 +93,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.
    * 
@@ -86,6 +111,8 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** + * + * *
    * Source document-links.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** + * + * *
    * Source document-links.
    * 
@@ -112,12 +141,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -126,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 { @@ -158,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,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 < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -187,8 +219,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_); @@ -201,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.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; } @@ -235,129 +265,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(); @@ -374,13 +411,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(); } @@ -395,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +454,39 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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; @@ -454,7 +494,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()) { @@ -473,9 +515,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_); } @@ -511,30 +554,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(); + 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(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -544,28 +590,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 { @@ -573,6 +629,8 @@ public java.util.List getDocu } } /** + * + * *
      * Source document-links.
      * 
@@ -587,6 +645,8 @@ public int getDocumentLinksCount() { } } /** + * + * *
      * Source document-links.
      * 
@@ -601,6 +661,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** + * + * *
      * Source document-links.
      * 
@@ -622,6 +684,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -640,6 +704,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -660,6 +726,8 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** + * + * *
      * Source document-links.
      * 
@@ -681,6 +749,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -699,6 +769,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -717,6 +789,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -727,8 +801,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); @@ -736,6 +809,8 @@ public Builder addAllDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -753,6 +828,8 @@ public Builder clearDocumentLinks() { return this; } /** + * + * *
      * Source document-links.
      * 
@@ -770,6 +847,8 @@ public Builder removeDocumentLinks(int index) { return this; } /** + * + * *
      * Source document-links.
      * 
@@ -781,6 +860,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** + * + * *
      * Source document-links.
      * 
@@ -790,19 +871,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 { @@ -810,6 +894,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** + * + * *
      * Source document-links.
      * 
@@ -817,10 +903,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.
      * 
@@ -829,26 +917,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(), @@ -860,19 +957,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; @@ -881,21 +980,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 { @@ -903,64 +1003,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,41 +1077,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; @@ -1016,9 +1125,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..0142fc34bb3d 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 68% 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 39b936146d98..6373b02ae0d1 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,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -101,12 +127,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 @@ -114,19 +143,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.
@@ -135,11 +171,13 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,8 +189,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_);
     }
@@ -172,8 +209,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;
@@ -183,19 +219,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;
@@ -220,129 +255,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(); @@ -358,13 +400,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(); } @@ -379,7 +422,8 @@ 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); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result = + new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest(this); result.parent_ = parent_; if (requestMetadataBuilder_ == null) { result.requestMetadata_ = requestMetadata_; @@ -394,38 +438,39 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -433,7 +478,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_; onChanged(); @@ -467,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + 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,20 +545,24 @@ public Builder mergeFrom( 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; @@ -519,22 +571,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 { @@ -542,60 +597,73 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -603,36 +671,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -654,6 +735,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.
@@ -673,6 +756,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -680,11 +765,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -696,6 +784,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.
@@ -715,6 +805,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -722,12 +814,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -735,15 +830,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.
@@ -752,21 +851,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);
     }
 
@@ -776,12 +878,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();
   }
@@ -790,27 +893,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;
@@ -825,6 +928,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 704fccfa60c9..02c51051cf14 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 0d81ebfba5fe..fec866dbc310 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,32 +44,35 @@ private ListLinkedTargetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedTargetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List documentLinks_; /** + * + * *
    * Target document-links.
    * 
@@ -63,6 +84,8 @@ public java.util.List getDocu return documentLinks_; } /** + * + * *
    * Target document-links.
    * 
@@ -70,11 +93,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.
    * 
@@ -86,6 +111,8 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** + * + * *
    * Target document-links.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** + * + * *
    * Target document-links.
    * 
@@ -112,12 +141,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -126,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 { @@ -158,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,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 < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -187,8 +219,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_); @@ -201,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.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; } @@ -235,129 +265,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(); @@ -374,13 +411,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(); } @@ -395,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +454,39 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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; @@ -454,7 +494,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()) { @@ -473,9 +515,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_); } @@ -511,30 +554,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(); + 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(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -544,28 +590,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 { @@ -573,6 +629,8 @@ public java.util.List getDocu } } /** + * + * *
      * Target document-links.
      * 
@@ -587,6 +645,8 @@ public int getDocumentLinksCount() { } } /** + * + * *
      * Target document-links.
      * 
@@ -601,6 +661,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** + * + * *
      * Target document-links.
      * 
@@ -622,6 +684,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -640,6 +704,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -660,6 +726,8 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** + * + * *
      * Target document-links.
      * 
@@ -681,6 +749,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -699,6 +769,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -717,6 +789,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -727,8 +801,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); @@ -736,6 +809,8 @@ public Builder addAllDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -753,6 +828,8 @@ public Builder clearDocumentLinks() { return this; } /** + * + * *
      * Target document-links.
      * 
@@ -770,6 +847,8 @@ public Builder removeDocumentLinks(int index) { return this; } /** + * + * *
      * Target document-links.
      * 
@@ -781,6 +860,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** + * + * *
      * Target document-links.
      * 
@@ -790,19 +871,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 { @@ -810,6 +894,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** + * + * *
      * Target document-links.
      * 
@@ -817,10 +903,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.
      * 
@@ -829,26 +917,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(), @@ -860,19 +957,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; @@ -881,21 +980,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 { @@ -903,64 +1003,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,41 +1077,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; @@ -1016,9 +1125,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..a1106ea2e029 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 135c7738351b..ea5d5498a540 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,38 +44,44 @@ private ListRuleSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuleSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,30 +90,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 { @@ -100,6 +126,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of rule sets to return. The service may return
    * fewer than this value.
@@ -108,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,6 +147,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -126,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -134,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.
@@ -150,16 +183,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 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +212,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 +235,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 +248,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; } @@ -253,129 +282,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(); @@ -389,9 +425,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 @@ -410,7 +446,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); + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest result = + new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -422,38 +459,39 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest 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.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; @@ -461,7 +499,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_; onChanged(); @@ -499,27 +538,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -532,19 +575,23 @@ public Builder mergeFrom( 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; @@ -553,21 +600,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 { @@ -575,64 +625,79 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -641,6 +706,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -648,6 +714,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -656,16 +724,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -674,10 +745,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -685,6 +757,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.
@@ -693,13 +767,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; @@ -708,6 +782,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -716,15 +792,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 { @@ -732,6 +807,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -740,20 +817,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +841,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -779,23 +861,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +887,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(); } @@ -819,27 +901,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; @@ -854,6 +936,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 62% 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 e47905f5fde2..b1a5ce3fc7cd 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -51,10 +81,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.
@@ -63,8 +96,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 366da7e6933f..85e03555fc5d 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,32 +44,35 @@ private ListRuleSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuleSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List ruleSets_; /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -63,6 +84,8 @@ public java.util.List getRuleSetsL return ruleSets_; } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -70,11 +93,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.
    * 
@@ -86,6 +111,8 @@ public int getRuleSetsCount() { return ruleSets_.size(); } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { return ruleSets_.get(index); } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -104,20 +133,22 @@ 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; 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 @@ -126,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 { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,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 < ruleSets_.size(); i++) { output.writeMessage(1, ruleSets_.get(i)); } @@ -187,8 +218,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_); @@ -201,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.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; } @@ -235,129 +264,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(); @@ -374,9 +410,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 @@ -395,7 +431,8 @@ 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); int from_bitField0_ = bitField0_; if (ruleSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +452,39 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse 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.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; @@ -454,7 +492,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()) { @@ -473,9 +512,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_); } @@ -511,30 +551,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(); + 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(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -544,21 +586,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.
      * 
@@ -573,6 +623,8 @@ public java.util.List getRuleSetsL } } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -587,6 +639,8 @@ public int getRuleSetsCount() { } } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -601,14 +655,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(); @@ -622,6 +677,8 @@ public Builder setRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -640,6 +697,8 @@ public Builder setRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -660,14 +719,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(); @@ -681,6 +741,8 @@ public Builder addRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -699,6 +761,8 @@ public Builder addRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -717,6 +781,8 @@ public Builder addRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -727,8 +793,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); @@ -736,6 +801,8 @@ public Builder addAllRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -753,6 +820,8 @@ public Builder clearRuleSets() { return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -770,39 +839,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 { @@ -810,6 +884,8 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilde } } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -817,42 +893,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_; @@ -860,19 +942,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; @@ -881,21 +965,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 { @@ -903,64 +988,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +1062,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(); } @@ -984,27 +1076,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; @@ -1019,6 +1111,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..6e9638bd4fc6 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 68% 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 31e529a95923..7d17e5632f56 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,38 +45,44 @@ private ListSynonymSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSynonymSetsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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;
   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 @@ -67,30 +91,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 { @@ -101,6 +127,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of synonymSets to return. The service may return
    * fewer than this value.
@@ -109,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -119,6 +148,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +158,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -135,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.
@@ -151,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 { @@ -169,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,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_); } @@ -204,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_); @@ -218,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.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; } @@ -254,96 +283,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.
@@ -351,33 +388,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();
@@ -391,9 +427,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
@@ -412,7 +448,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);
+      com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest result =
+          new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -424,38 +461,39 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest 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.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;
@@ -463,7 +501,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_;
         onChanged();
@@ -501,27 +540,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+
+                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) {
@@ -534,19 +577,23 @@ public Builder mergeFrom(
 
     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; @@ -555,21 +602,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 { @@ -577,64 +627,79 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -643,6 +708,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -650,6 +716,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -658,16 +726,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -676,10 +747,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -687,6 +759,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.
@@ -695,13 +769,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; @@ -710,6 +784,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -718,15 +794,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 { @@ -734,6 +809,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -742,20 +819,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -764,15 +843,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -781,23 +863,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -807,12 +889,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(); } @@ -821,27 +903,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; @@ -856,6 +938,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 6607712a28fb..3e1248b98eb6 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -51,10 +81,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.
@@ -63,8 +96,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 f1545f8823f7..1384409e9ab5 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,32 +44,35 @@ private ListSynonymSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSynonymSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List synonymSets_; /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -63,6 +84,8 @@ public java.util.List getSynony return synonymSets_; } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -70,11 +93,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.
    * 
@@ -86,6 +111,8 @@ public int getSynonymSetsCount() { return synonymSets_.size(); } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) return synonymSets_.get(index); } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -112,12 +141,15 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -126,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 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 { @@ -158,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,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 < synonymSets_.size(); i++) { output.writeMessage(1, synonymSets_.get(i)); } @@ -187,8 +219,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_); @@ -201,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.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; } @@ -235,129 +265,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(); @@ -374,13 +411,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(); } @@ -395,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (synonymSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +454,39 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse 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.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; @@ -454,7 +494,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()) { @@ -473,9 +515,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_); } @@ -511,30 +554,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(); + 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(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -544,21 +590,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.
      * 
@@ -573,6 +627,8 @@ public java.util.List getSynony } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -587,6 +643,8 @@ public int getSynonymSetsCount() { } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -601,6 +659,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -622,6 +682,8 @@ public Builder setSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -640,6 +702,8 @@ public Builder setSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -660,6 +724,8 @@ public Builder addSynonymSets(com.google.cloud.contentwarehouse.v1.SynonymSet va return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -681,6 +747,8 @@ public Builder addSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -699,6 +767,8 @@ public Builder addSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -717,6 +787,8 @@ public Builder addSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -727,8 +799,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); @@ -736,6 +807,8 @@ public Builder addAllSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -753,6 +826,8 @@ public Builder clearSynonymSets() { return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -770,6 +845,8 @@ public Builder removeSynonymSets(int index) { return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -781,6 +858,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetsBui return getSynonymSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -790,19 +869,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 { @@ -810,6 +892,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -817,10 +901,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.
      * 
@@ -829,30 +915,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_; @@ -860,19 +951,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; @@ -881,21 +974,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 { @@ -903,64 +997,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +1071,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(); } @@ -984,27 +1086,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; @@ -1019,6 +1121,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..e370c9a5d995 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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/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 3ca0eccedfed..4304c4e125be 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,74 +29,78 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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());
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.contentwarehouse.v1.Value> fields_;
+                .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());
+  }
+
+  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_;
   }
@@ -88,28 +109,30 @@ public int getFieldsCount() {
     return internalGetFields().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Unordered map of dynamically typed values.
    * 
* * 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.
    * 
@@ -117,11 +140,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.
    * 
@@ -129,16 +154,18 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( - java.lang.String key, - com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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.
    * 
@@ -146,10 +173,10 @@ public 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)) { @@ -159,6 +186,7 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,14 +198,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); } @@ -187,15 +210,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; @@ -205,15 +229,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; } @@ -234,97 +258,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
@@ -333,55 +364,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();
@@ -390,9 +418,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
@@ -411,7 +439,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);
+      com.google.cloud.contentwarehouse.v1.MapProperty result =
+          new com.google.cloud.contentwarehouse.v1.MapProperty(this);
       int from_bitField0_ = bitField0_;
       result.fields_ = internalGetFields();
       result.fields_.makeImmutable();
@@ -423,38 +452,39 @@ public com.google.cloud.contentwarehouse.v1.MapProperty 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.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;
@@ -462,9 +492,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());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -491,20 +521,26 @@ 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());
-              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());
+                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) {
@@ -514,24 +550,29 @@ 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
-    internalGetFields() {
+            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
-    internalGetMutableFields() {
-      onChanged();;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
+        internalGetMutableFields() {
+      onChanged();
+      ;
       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,28 +584,30 @@ public int getFieldsCount() {
       return internalGetFields().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Unordered map of dynamically typed values.
      * 
* * 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.
      * 
@@ -572,11 +615,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.
      * 
@@ -584,16 +629,18 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( - java.lang.String key, - com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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.
      * 
@@ -601,10 +648,10 @@ public 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,34 +661,34 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( } public Builder clearFields() { - 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() { + getMutableFields() { return internalGetMutableFields().getMutableMap(); } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
@@ -649,34 +696,34 @@ 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableFields().getMutableMap() - .put(key, value); + internalGetMutableFields().getMutableMap().put(key, value); return this; } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - public Builder putAllFields( java.util.Map values) { - internalGetMutableFields().getMutableMap() - .putAll(values); + internalGetMutableFields().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -686,12 +733,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 +747,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 +782,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 1f7a1e3dad98..7a4e1e413687 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * 
@@ -48,18 +67,18 @@ boolean containsFields( */ /* 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 d31807763946..b6da875998c1 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,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +257,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 @@ -253,7 +278,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; } @@ -262,38 +288,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; @@ -301,7 +328,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; @@ -328,12 +356,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) { @@ -343,9 +372,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); } @@ -355,12 +384,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(); } @@ -369,27 +398,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; @@ -404,6 +433,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..71c51a35976d --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 a160ecc31516..d96e1fb43db7 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,56 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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_; /** + * + * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -61,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * optional bool replace_message_fields = 1; + * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -68,6 +89,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
@@ -78,6 +101,7 @@ public boolean hasReplaceMessageFields() {
    * 
* * optional bool replace_message_fields = 1; + * * @return The replaceMessageFields. */ @java.lang.Override @@ -88,6 +112,8 @@ public boolean getReplaceMessageFields() { public static final int REPLACE_REPEATED_FIELDS_FIELD_NUMBER = 2; private boolean replaceRepeatedFields_; /** + * + * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -100,6 +126,7 @@ public boolean getReplaceMessageFields() {
    * 
* * optional bool replace_repeated_fields = 2; + * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -107,6 +134,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.
@@ -119,6 +148,7 @@ public boolean hasReplaceRepeatedFields() {
    * 
* * optional bool replace_repeated_fields = 2; + * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -127,6 +157,7 @@ public boolean getReplaceRepeatedFields() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +169,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_); } @@ -156,12 +186,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; @@ -171,22 +199,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; @@ -201,13 +228,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; @@ -215,129 +240,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(); @@ -349,9 +381,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 @@ -370,7 +402,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); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions result = + new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -390,38 +423,39 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions 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.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; @@ -429,7 +463,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()); } @@ -462,22 +497,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) { @@ -487,10 +525,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
@@ -501,6 +542,7 @@ public Builder mergeFrom(
      * 
* * optional bool replace_message_fields = 1; + * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -508,6 +550,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
@@ -518,6 +562,7 @@ public boolean hasReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; + * * @return The replaceMessageFields. */ @java.lang.Override @@ -525,6 +570,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
@@ -535,6 +582,7 @@ public boolean getReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; + * * @param value The replaceMessageFields to set. * @return This builder for chaining. */ @@ -545,6 +593,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
@@ -555,6 +605,7 @@ public Builder setReplaceMessageFields(boolean value) {
      * 
* * optional bool replace_message_fields = 1; + * * @return This builder for chaining. */ public Builder clearReplaceMessageFields() { @@ -564,8 +615,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.
@@ -578,6 +631,7 @@ public Builder clearReplaceMessageFields() {
      * 
* * optional bool replace_repeated_fields = 2; + * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -585,6 +639,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.
@@ -597,6 +653,7 @@ public boolean hasReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; + * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -604,6 +661,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.
@@ -616,6 +675,7 @@ public boolean getReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; + * * @param value The replaceRepeatedFields to set. * @return This builder for chaining. */ @@ -626,6 +686,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.
@@ -638,6 +700,7 @@ public Builder setReplaceRepeatedFields(boolean value) {
      * 
* * optional bool replace_repeated_fields = 2; + * * @return This builder for chaining. */ public Builder clearReplaceRepeatedFields() { @@ -646,9 +709,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); } @@ -658,12 +721,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(); } @@ -672,27 +735,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; @@ -707,6 +770,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 79% 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 fab192b35fd6..c59088ca5192 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
@@ -49,10 +73,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.
@@ -65,6 +92,7 @@ public interface MergeFieldsOptionsOrBuilder extends
    * 
* * 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/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 ffe718dcfb2b..872e08770564 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,57 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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), @@ -63,6 +84,7 @@ public enum ValuesCase TIMESTAMP_VALUES(9), VALUES_NOT_SET(0); private final int value; + private ValuesCase(int value) { this.value = value; } @@ -78,37 +100,49 @@ 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; 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 @@ -117,29 +151,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. 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 { @@ -149,11 +183,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 @@ -161,21 +198,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.
    * 
@@ -185,18 +227,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 @@ -204,21 +249,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.
    * 
@@ -228,18 +278,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 @@ -247,21 +300,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.
    * 
@@ -271,18 +329,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 @@ -290,21 +351,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.
    * 
@@ -314,18 +380,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 @@ -333,21 +402,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.
    * 
@@ -357,19 +431,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 @@ -377,22 +454,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.
@@ -403,18 +485,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 @@ -422,21 +507,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.
    * 
@@ -446,19 +536,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 @@ -466,22 +559,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.
@@ -490,14 +588,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;
@@ -509,8 +609,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_);
     }
@@ -551,36 +650,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;
@@ -590,48 +697,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:
@@ -690,130 +789,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(); @@ -849,9 +954,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 @@ -870,7 +975,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); + com.google.cloud.contentwarehouse.v1.Property result = + new com.google.cloud.contentwarehouse.v1.Property(this); result.name_ = name_; if (valuesCase_ == 2) { if (integerValuesBuilder_ == null) { @@ -937,38 +1043,39 @@ public com.google.cloud.contentwarehouse.v1.Property 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.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; @@ -982,41 +1089,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(); @@ -1044,73 +1160,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - 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(); + + 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) { @@ -1120,12 +1230,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() { @@ -1135,21 +1245,22 @@ public Builder clearValues() { return this; } - 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; @@ -1158,20 +1269,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 { @@ -1179,67 +1291,80 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } 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 @@ -1247,11 +1372,14 @@ public boolean hasIntegerValues() { return valuesCase_ == 2; } /** + * + * *
      * Integer property values.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return The integerValues. */ @java.lang.Override @@ -1269,6 +1397,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { } } /** + * + * *
      * Integer property values.
      * 
@@ -1289,6 +1419,8 @@ public Builder setIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerArra return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1307,6 +1439,8 @@ public Builder setIntegerValues( return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1315,10 +1449,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; } @@ -1334,6 +1471,8 @@ public Builder mergeIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerAr return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1357,6 +1496,8 @@ public Builder clearIntegerValues() { return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1367,6 +1508,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray.Builder getIntegerValue return getIntegerValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Integer property values.
      * 
@@ -1385,6 +1528,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu } } /** + * + * *
      * Integer property values.
      * 
@@ -1392,32 +1537,44 @@ 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()); values_ = null; } valuesCase_ = 2; - onChanged();; + onChanged(); + ; return integerValuesBuilder_; } 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 @@ -1425,11 +1582,14 @@ public boolean hasFloatValues() { return valuesCase_ == 3; } /** + * + * *
      * Float property values.
      * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return The floatValues. */ @java.lang.Override @@ -1447,6 +1607,8 @@ public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { } } /** + * + * *
      * Float property values.
      * 
@@ -1467,6 +1629,8 @@ public Builder setFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray va return this; } /** + * + * *
      * Float property values.
      * 
@@ -1485,6 +1649,8 @@ public Builder setFloatValues( return this; } /** + * + * *
      * Float property values.
      * 
@@ -1493,10 +1659,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; } @@ -1512,6 +1681,8 @@ public Builder mergeFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray return this; } /** + * + * *
      * Float property values.
      * 
@@ -1535,6 +1706,8 @@ public Builder clearFloatValues() { return this; } /** + * + * *
      * Float property values.
      * 
@@ -1545,6 +1718,8 @@ public com.google.cloud.contentwarehouse.v1.FloatArray.Builder getFloatValuesBui return getFloatValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Float property values.
      * 
@@ -1563,6 +1738,8 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr } } /** + * + * *
      * Float property values.
      * 
@@ -1570,32 +1747,44 @@ 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()); values_ = null; } valuesCase_ = 3; - onChanged();; + onChanged(); + ; return floatValuesBuilder_; } 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 @@ -1603,11 +1792,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 @@ -1625,6 +1817,8 @@ public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { } } /** + * + * *
      * String/text property values.
      * 
@@ -1645,6 +1839,8 @@ public Builder setTextValues(com.google.cloud.contentwarehouse.v1.TextArray valu return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1663,6 +1859,8 @@ public Builder setTextValues( return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1671,10 +1869,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; } @@ -1690,6 +1891,8 @@ public Builder mergeTextValues(com.google.cloud.contentwarehouse.v1.TextArray va return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1713,6 +1916,8 @@ public Builder clearTextValues() { return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1723,6 +1928,8 @@ public com.google.cloud.contentwarehouse.v1.TextArray.Builder getTextValuesBuild return getTextValuesFieldBuilder().getBuilder(); } /** + * + * *
      * String/text property values.
      * 
@@ -1741,6 +1948,8 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu } } /** + * + * *
      * String/text property values.
      * 
@@ -1748,32 +1957,44 @@ 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()); values_ = null; } valuesCase_ = 4; - onChanged();; + onChanged(); + ; return textValuesBuilder_; } 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 @@ -1781,11 +2002,14 @@ public boolean hasEnumValues() { return valuesCase_ == 5; } /** + * + * *
      * Enum property values.
      * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return The enumValues. */ @java.lang.Override @@ -1803,6 +2027,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { } } /** + * + * *
      * Enum property values.
      * 
@@ -1823,6 +2049,8 @@ public Builder setEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray valu return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1841,6 +2069,8 @@ public Builder setEnumValues( return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1849,10 +2079,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; } @@ -1868,6 +2101,8 @@ public Builder mergeEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray va return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1891,6 +2126,8 @@ public Builder clearEnumValues() { return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1901,6 +2138,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArray.Builder getEnumValuesBuild return getEnumValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Enum property values.
      * 
@@ -1919,6 +2158,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu } } /** + * + * *
      * Enum property values.
      * 
@@ -1926,32 +2167,44 @@ 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()); values_ = null; } valuesCase_ = 5; - onChanged();; + onChanged(); + ; return enumValuesBuilder_; } 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 @@ -1959,11 +2212,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 @@ -1981,6 +2237,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { } } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2001,6 +2259,8 @@ public Builder setPropertyValues(com.google.cloud.contentwarehouse.v1.PropertyAr return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2019,6 +2279,8 @@ public Builder setPropertyValues( return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2027,10 +2289,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; } @@ -2046,6 +2311,8 @@ public Builder mergePropertyValues(com.google.cloud.contentwarehouse.v1.Property return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2069,6 +2336,8 @@ public Builder clearPropertyValues() { return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2079,6 +2348,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal return getPropertyValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2086,7 +2357,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 { @@ -2097,6 +2369,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyVa } } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2104,33 +2378,45 @@ 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()); values_ = null; } valuesCase_ = 6; - onChanged();; + onChanged(); + ; return propertyValuesBuilder_; } 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 @@ -2138,12 +2424,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 @@ -2161,6 +2450,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() { } } /** + * + * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2182,6 +2473,8 @@ public Builder setDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTimeAr
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2201,6 +2494,8 @@ public Builder setDateTimeValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2210,10 +2505,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;
         }
@@ -2229,6 +2527,8 @@ public Builder mergeDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTime
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2253,6 +2553,8 @@ public Builder clearDateTimeValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2264,6 +2566,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.
@@ -2272,7 +2576,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 {
@@ -2283,6 +2588,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeVa
       }
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2291,32 +2598,44 @@ 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());
         values_ = null;
       }
       valuesCase_ = 7;
-      onChanged();;
+      onChanged();
+      ;
       return dateTimeValuesBuilder_;
     }
 
     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 @@ -2324,11 +2643,14 @@ public boolean hasMapProperty() { return valuesCase_ == 8; } /** + * + * *
      * Map property values.
      * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return The mapProperty. */ @java.lang.Override @@ -2346,6 +2668,8 @@ public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { } } /** + * + * *
      * Map property values.
      * 
@@ -2366,6 +2690,8 @@ public Builder setMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty v return this; } /** + * + * *
      * Map property values.
      * 
@@ -2384,6 +2710,8 @@ public Builder setMapProperty( return this; } /** + * + * *
      * Map property values.
      * 
@@ -2392,10 +2720,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; } @@ -2411,6 +2742,8 @@ public Builder mergeMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty return this; } /** + * + * *
      * Map property values.
      * 
@@ -2434,6 +2767,8 @@ public Builder clearMapProperty() { return this; } /** + * + * *
      * Map property values.
      * 
@@ -2444,6 +2779,8 @@ public com.google.cloud.contentwarehouse.v1.MapProperty.Builder getMapPropertyBu return getMapPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Map property values.
      * 
@@ -2462,6 +2799,8 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO } } /** + * + * *
      * Map property values.
      * 
@@ -2469,33 +2808,45 @@ 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()); values_ = null; } valuesCase_ = 8; - onChanged();; + onChanged(); + ; return mapPropertyBuilder_; } 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 @@ -2503,12 +2854,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 @@ -2526,6 +2880,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues() } } /** + * + * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2547,6 +2903,8 @@ public Builder setTimestampValues(com.google.cloud.contentwarehouse.v1.Timestamp
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2566,6 +2924,8 @@ public Builder setTimestampValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2575,10 +2935,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;
         }
@@ -2594,6 +2958,8 @@ public Builder mergeTimestampValues(com.google.cloud.contentwarehouse.v1.Timesta
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2618,6 +2984,8 @@ public Builder clearTimestampValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2629,6 +2997,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       return getTimestampValuesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2637,7 +3007,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 {
@@ -2648,6 +3019,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestamp
       }
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2656,26 +3029,32 @@ 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());
         values_ = null;
       }
       valuesCase_ = 9;
-      onChanged();;
+      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);
     }
 
@@ -2685,12 +3064,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();
   }
@@ -2699,27 +3078,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;
@@ -2734,6 +3113,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 c1283acb097a..2d3c68cde132 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,56 +1,77 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List properties_; /** + * + * *
    * List of property values.
    * 
@@ -62,6 +83,8 @@ public java.util.List getProperti return properties_; } /** + * + * *
    * List of property values.
    * 
@@ -69,11 +92,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.
    * 
@@ -85,6 +110,8 @@ public int getPropertiesCount() { return properties_.size(); } /** + * + * *
    * List of property values.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** + * + * *
    * List of property values.
    * 
@@ -103,12 +132,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; @@ -120,8 +149,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)); } @@ -135,8 +163,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; @@ -146,15 +173,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; } @@ -176,129 +203,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(); @@ -313,9 +346,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 @@ -334,7 +367,8 @@ 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); int from_bitField0_ = bitField0_; if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +387,39 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray 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.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; @@ -392,7 +427,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()) { @@ -411,9 +447,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_); } @@ -445,25 +482,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) { @@ -473,21 +511,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.
      * 
@@ -502,6 +548,8 @@ public java.util.List getProperti } } /** + * + * *
      * List of property values.
      * 
@@ -516,6 +564,8 @@ public int getPropertiesCount() { } } /** + * + * *
      * List of property values.
      * 
@@ -530,14 +580,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(); @@ -551,6 +602,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -569,6 +622,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -589,14 +644,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(); @@ -610,6 +666,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -628,6 +686,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -646,6 +706,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -656,8 +718,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); @@ -665,6 +726,8 @@ public Builder addAllProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -682,6 +745,8 @@ public Builder clearProperties() { return this; } /** + * + * *
      * List of property values.
      * 
@@ -699,17 +764,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.
      * 
@@ -719,19 +787,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 { @@ -739,6 +810,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** + * + * *
      * List of property values.
      * 
@@ -746,49 +819,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); } @@ -798,12 +877,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(); } @@ -812,27 +891,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; @@ -847,6 +926,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..98c183b26ab3 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 72% 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 88c2c1302d5c..9ec683665c87 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -26,33 +44,36 @@ private PropertyDefinition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyDefinition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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); } private int valueTypeOptionsCase_ = 0; 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), @@ -64,6 +85,7 @@ public enum ValueTypeOptionsCase TIMESTAMP_TYPE_OPTIONS(16), VALUETYPEOPTIONS_NOT_SET(0); private final int value; + private ValueTypeOptionsCase(int value) { this.value = value; } @@ -79,32 +101,43 @@ 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -113,6 +146,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -121,14 +155,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.
@@ -137,16 +172,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 { @@ -157,11 +191,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 12; 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 @@ -170,29 +207,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 { @@ -203,11 +240,14 @@ public java.lang.String getDisplayName() { public static final int IS_REPEATABLE_FIELD_NUMBER = 2; private boolean isRepeatable_; /** + * + * *
    * Whether the property can have multiple values.
    * 
* * bool is_repeatable = 2; + * * @return The isRepeatable. */ @java.lang.Override @@ -218,12 +258,15 @@ public boolean getIsRepeatable() { public static final int IS_FILTERABLE_FIELD_NUMBER = 3; 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 @@ -234,11 +277,14 @@ public boolean getIsFilterable() { public static final int IS_SEARCHABLE_FIELD_NUMBER = 4; private boolean isSearchable_; /** + * + * *
    * Indicates that the property should be included in a global search.
    * 
* * bool is_searchable = 4; + * * @return The isSearchable. */ @java.lang.Override @@ -249,11 +295,14 @@ public boolean getIsSearchable() { public static final int IS_METADATA_FIELD_NUMBER = 5; private boolean isMetadata_; /** + * + * *
    * Whether the property is user supplied metadata.
    * 
* * bool is_metadata = 5; + * * @return The isMetadata. */ @java.lang.Override @@ -264,6 +313,8 @@ public boolean getIsMetadata() { public static final int IS_REQUIRED_FIELD_NUMBER = 14; private boolean isRequired_; /** + * + * *
    * Whether the property is mandatory.
    * Default is 'false', i.e. populating property value can be skipped.
@@ -271,6 +322,7 @@ public boolean getIsMetadata() {
    * 
* * bool is_required = 14; + * * @return The isRequired. */ @java.lang.Override @@ -280,11 +332,14 @@ public boolean getIsRequired() { 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 @@ -292,21 +347,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.
    * 
@@ -314,20 +374,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 @@ -335,21 +399,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.
    * 
@@ -357,20 +426,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 @@ -378,21 +451,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.
    * 
@@ -400,20 +478,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 @@ -421,21 +503,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.
    * 
@@ -443,20 +530,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 @@ -464,21 +555,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.
    * 
@@ -486,21 +582,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 @@ -508,22 +608,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.
@@ -532,20 +637,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 @@ -553,21 +662,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.
    * 
@@ -577,19 +691,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 @@ -597,38 +715,47 @@ 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(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -640,8 +767,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_); } @@ -658,34 +784,42 @@ 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_); } getUnknownFields().writeTo(output); } @@ -700,59 +834,62 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -762,60 +899,46 @@ public int getSerializedSize() { @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 (!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: @@ -836,20 +959,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()); switch (valueTypeOptionsCase_) { case 7: hash = (37 * hash) + INTEGER_TYPE_OPTIONS_FIELD_NUMBER; @@ -892,129 +1010,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(); @@ -1062,9 +1187,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 @@ -1083,7 +1208,8 @@ 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); result.name_ = name_; result.displayName_ = displayName_; result.isRepeatable_ = isRepeatable_; @@ -1156,38 +1282,39 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.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; @@ -1195,7 +1322,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_; onChanged(); @@ -1220,41 +1348,50 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition setIsRequired(other.getIsRequired()); } 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(); @@ -1282,103 +1419,108 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - isRepeatable_ = input.readBool(); - - break; - } // case 16 - case 24: { - isFilterable_ = input.readBool(); - - break; - } // case 24 - case 32: { - isSearchable_ = input.readBool(); - - break; - } // case 32 - case 40: { - isMetadata_ = input.readBool(); - - 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(); - - break; - } // case 98 - case 106: { - input.readMessage( - getDateTimeTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 13; - break; - } // case 106 - case 112: { - isRequired_ = input.readBool(); - - 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 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + isRepeatable_ = input.readBool(); + + break; + } // case 16 + case 24: + { + isFilterable_ = input.readBool(); + + break; + } // case 24 + case 32: + { + isSearchable_ = input.readBool(); + + break; + } // case 32 + case 40: + { + isMetadata_ = input.readBool(); + + 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(); + + break; + } // case 98 + case 106: + { + input.readMessage( + getDateTimeTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 13; + break; + } // case 106 + case 112: + { + isRequired_ = input.readBool(); + + 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1388,12 +1530,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() { @@ -1403,9 +1545,10 @@ public Builder clearValueTypeOptions() { return this; } - private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1414,13 +1557,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; @@ -1429,6 +1572,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1437,15 +1582,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 { @@ -1453,6 +1597,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1461,20 +1607,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1483,15 +1631,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -1500,16 +1651,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1517,18 +1668,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; @@ -1537,20 +1690,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 { @@ -1558,66 +1712,76 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); 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 @@ -1625,43 +1789,52 @@ 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. */ public Builder setIsRepeatable(boolean value) { - + isRepeatable_ = value; onChanged(); return this; } /** + * + * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; + * * @return This builder for chaining. */ public Builder clearIsRepeatable() { - + isRepeatable_ = false; onChanged(); 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 @@ -1669,44 +1842,53 @@ 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. */ public Builder setIsFilterable(boolean value) { - + isFilterable_ = value; onChanged(); 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() { - + isFilterable_ = false; onChanged(); 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 @@ -1714,42 +1896,51 @@ 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. */ public Builder setIsSearchable(boolean value) { - + isSearchable_ = value; onChanged(); 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() { - + isSearchable_ = false; onChanged(); return this; } - private boolean isMetadata_ ; + private boolean isMetadata_; /** + * + * *
      * Whether the property is user supplied metadata.
      * 
* * bool is_metadata = 5; + * * @return The isMetadata. */ @java.lang.Override @@ -1757,37 +1948,45 @@ public boolean getIsMetadata() { return isMetadata_; } /** + * + * *
      * Whether the property is user supplied metadata.
      * 
* * bool is_metadata = 5; + * * @param value The isMetadata to set. * @return This builder for chaining. */ public Builder setIsMetadata(boolean value) { - + isMetadata_ = value; onChanged(); return this; } /** + * + * *
      * Whether the property is user supplied metadata.
      * 
* * bool is_metadata = 5; + * * @return This builder for chaining. */ public Builder clearIsMetadata() { - + isMetadata_ = false; onChanged(); return this; } - private boolean isRequired_ ; + private boolean isRequired_; /** + * + * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -1795,6 +1994,7 @@ public Builder clearIsMetadata() {
      * 
* * bool is_required = 14; + * * @return The isRequired. */ @java.lang.Override @@ -1802,6 +2002,8 @@ public boolean getIsRequired() { return isRequired_; } /** + * + * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -1809,16 +2011,19 @@ public boolean getIsRequired() {
      * 
* * bool is_required = 14; + * * @param value The isRequired to set. * @return This builder for chaining. */ public Builder setIsRequired(boolean value) { - + isRequired_ = value; onChanged(); return this; } /** + * + * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -1826,23 +2031,30 @@ public Builder setIsRequired(boolean value) {
      * 
* * bool is_required = 14; + * * @return This builder for chaining. */ public Builder clearIsRequired() { - + isRequired_ = false; onChanged(); return this; } 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 @@ -1850,11 +2062,14 @@ public boolean hasIntegerTypeOptions() { return valueTypeOptionsCase_ == 7; } /** + * + * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return The integerTypeOptions. */ @java.lang.Override @@ -1872,13 +2087,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(); @@ -1892,6 +2110,8 @@ public Builder setIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.Intege return this; } /** + * + * *
      * Integer property.
      * 
@@ -1910,18 +2130,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; } @@ -1937,6 +2164,8 @@ public Builder mergeIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.Inte return this; } /** + * + * *
      * Integer property.
      * 
@@ -1960,16 +2189,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.
      * 
@@ -1977,7 +2211,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 { @@ -1988,6 +2223,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getInteg } } /** + * + * *
      * Integer property.
      * 
@@ -1995,32 +2232,45 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 7; - onChanged();; + onChanged(); + ; return integerTypeOptionsBuilder_; } 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 @@ -2028,11 +2278,14 @@ public boolean hasFloatTypeOptions() { return valueTypeOptionsCase_ == 8; } /** + * + * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return The floatTypeOptions. */ @java.lang.Override @@ -2050,13 +2303,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(); @@ -2070,6 +2326,8 @@ public Builder setFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatTyp return this; } /** + * + * *
      * Float property.
      * 
@@ -2088,18 +2346,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; } @@ -2115,6 +2380,8 @@ public Builder mergeFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatT return this; } /** + * + * *
      * Float property.
      * 
@@ -2138,16 +2405,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.
      * 
@@ -2155,7 +2427,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 { @@ -2166,6 +2439,8 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTy } } /** + * + * *
      * Float property.
      * 
@@ -2173,32 +2448,45 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 8; - onChanged();; + onChanged(); + ; return floatTypeOptionsBuilder_; } 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 @@ -2206,11 +2494,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 @@ -2228,6 +2519,8 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() } } /** + * + * *
      * Text/string property.
      * 
@@ -2248,6 +2541,8 @@ public Builder setTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeO return this; } /** + * + * *
      * Text/string property.
      * 
@@ -2266,18 +2561,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; } @@ -2293,6 +2595,8 @@ public Builder mergeTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTyp return this; } /** + * + * *
      * Text/string property.
      * 
@@ -2316,16 +2620,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.
      * 
@@ -2333,7 +2642,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 { @@ -2344,6 +2654,8 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextType } } /** + * + * *
      * Text/string property.
      * 
@@ -2351,32 +2663,46 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 9; - onChanged();; + onChanged(); + ; return textTypeOptionsBuilder_; } 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 @@ -2384,11 +2710,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 @@ -2406,13 +2736,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(); @@ -2426,11 +2760,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) { @@ -2444,18 +2781,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; } @@ -2471,11 +2816,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) { @@ -2494,24 +2842,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 { @@ -2522,39 +2878,55 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 10; - onChanged();; + onChanged(); + ; return propertyTypeOptionsBuilder_; } 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 @@ -2562,11 +2934,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 @@ -2584,6 +2959,8 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() } } /** + * + * *
      * Enum/categorical property.
      * 
@@ -2604,6 +2981,8 @@ public Builder setEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeO return this; } /** + * + * *
      * Enum/categorical property.
      * 
@@ -2622,18 +3001,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; } @@ -2649,6 +3035,8 @@ public Builder mergeEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTyp return this; } /** + * + * *
      * Enum/categorical property.
      * 
@@ -2672,16 +3060,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.
      * 
@@ -2689,7 +3082,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 { @@ -2700,6 +3094,8 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumType } } /** + * + * *
      * Enum/categorical property.
      * 
@@ -2707,33 +3103,47 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 11; - onChanged();; + onChanged(); + ; return enumTypeOptionsBuilder_; } 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 @@ -2741,12 +3151,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 @@ -2764,14 +3178,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(); @@ -2785,12 +3203,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) { @@ -2804,19 +3225,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; } @@ -2832,12 +3261,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) { @@ -2856,26 +3288,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 { @@ -2886,40 +3326,56 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 13; - onChanged();; + onChanged(); + ; return dateTimeTypeOptionsBuilder_; } 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 @@ -2927,11 +3383,14 @@ public boolean hasMapTypeOptions() { return valueTypeOptionsCase_ == 15; } /** + * + * *
      * Map property.
      * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return The mapTypeOptions. */ @java.lang.Override @@ -2949,6 +3408,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { } } /** + * + * *
      * Map property.
      * 
@@ -2969,6 +3430,8 @@ public Builder setMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOpt return this; } /** + * + * *
      * Map property.
      * 
@@ -2987,6 +3450,8 @@ public Builder setMapTypeOptions( return this; } /** + * + * *
      * Map property.
      * 
@@ -2995,10 +3460,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; } @@ -3014,6 +3483,8 @@ public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeO return this; } /** + * + * *
      * Map property.
      * 
@@ -3037,6 +3508,8 @@ public Builder clearMapTypeOptions() { return this; } /** + * + * *
      * Map property.
      * 
@@ -3047,6 +3520,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt return getMapTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Map property.
      * 
@@ -3054,7 +3529,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 { @@ -3065,6 +3541,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOp } } /** + * + * *
      * Map property.
      * 
@@ -3072,33 +3550,47 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 15; - onChanged();; + onChanged(); + ; return mapTypeOptionsBuilder_; } 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 @@ -3106,12 +3598,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 @@ -3129,14 +3625,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(); @@ -3150,12 +3650,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) { @@ -3169,19 +3672,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; } @@ -3197,12 +3708,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) { @@ -3221,26 +3735,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 { @@ -3251,34 +3773,44 @@ 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(); - } - 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>( + 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>( (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); valueTypeOptions_ = null; } valueTypeOptionsCase_ = 16; - onChanged();; + onChanged(); + ; return timestampTypeOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3288,12 +3820,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(); } @@ -3302,27 +3834,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; @@ -3337,6 +3869,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 85% 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 185e0f215a8b..aab61c8d9d88 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,73 +49,92 @@ 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.
    * 
* * 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.
@@ -102,29 +142,38 @@ public interface PropertyDefinitionOrBuilder extends
    * 
* * bool is_required = 14; + * * @return The isRequired. */ boolean getIsRequired(); /** + * + * *
    * 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.
    * 
@@ -134,24 +183,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.
    * 
@@ -161,24 +218,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.
    * 
@@ -188,51 +253,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.
    * 
@@ -242,26 +324,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.
@@ -269,27 +359,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.
    * 
@@ -299,34 +398,47 @@ 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(); - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase getValueTypeOptionsCase(); + public 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 3621fe9f6a44..1097ed6351ce 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,32 +36,35 @@ private PropertyFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object documentSchemaName_; /** + * + * *
    * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
    * Format:
@@ -55,6 +72,7 @@ protected java.lang.Object newInstance(
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ @java.lang.Override @@ -63,14 +81,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].
    * Format:
@@ -78,16 +97,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 { @@ -98,6 +116,8 @@ public java.lang.String getDocumentSchemaName() { public static final int CONDITION_FIELD_NUMBER = 2; private volatile java.lang.Object condition_; /** + * + * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -134,6 +154,7 @@ public java.lang.String getDocumentSchemaName() {
    * 
* * string condition = 2; + * * @return The condition. */ @java.lang.Override @@ -142,14 +163,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.
@@ -186,16 +208,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 { @@ -204,6 +225,7 @@ public java.lang.String getCondition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentSchemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemaName_); } @@ -246,17 +267,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; } @@ -278,125 +298,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(); @@ -408,9 +430,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 @@ -429,7 +451,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); + com.google.cloud.contentwarehouse.v1.PropertyFilter result = + new com.google.cloud.contentwarehouse.v1.PropertyFilter(this); result.documentSchemaName_ = documentSchemaName_; result.condition_ = condition_; onBuilt(); @@ -440,38 +463,39 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter 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.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; @@ -479,7 +503,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_; onChanged(); @@ -514,22 +539,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - documentSchemaName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - condition_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + documentSchemaName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + condition_ = input.readStringRequireUtf8(); + + 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) { @@ -542,6 +570,8 @@ public Builder mergeFrom( private java.lang.Object documentSchemaName_ = ""; /** + * + * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -549,13 +579,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; @@ -564,6 +594,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -571,15 +603,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 { @@ -587,6 +618,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -594,20 +627,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) { + public Builder setDocumentSchemaName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentSchemaName_ = value; onChanged(); return this; } /** + * + * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -615,15 +650,18 @@ public Builder setDocumentSchemaName(
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { - + documentSchemaName_ = getDefaultInstance().getDocumentSchemaName(); onChanged(); return this; } /** + * + * *
      * The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
      * Format:
@@ -631,16 +669,16 @@ 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) { + public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentSchemaName_ = value; onChanged(); return this; @@ -648,6 +686,8 @@ public Builder setDocumentSchemaNameBytes( private java.lang.Object condition_ = ""; /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -684,13 +724,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; @@ -699,6 +739,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -735,15 +777,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 { @@ -751,6 +792,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -787,20 +830,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) { + public Builder setCondition(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + condition_ = value; onChanged(); return this; } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -837,15 +882,18 @@ public Builder setCondition(
      * 
* * string condition = 2; + * * @return This builder for chaining. */ public Builder clearCondition() { - + condition_ = getDefaultInstance().getCondition(); onChanged(); return this; } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -882,23 +930,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) { + public Builder setConditionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = 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); } @@ -908,12 +956,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(); } @@ -922,27 +970,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; @@ -957,6 +1005,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 fe94fc711f1b..c3b2bcc9f4e9 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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].
    * Format:
@@ -15,10 +33,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].
    * Format:
@@ -26,12 +47,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.
@@ -68,10 +91,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.
@@ -108,8 +134,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 3e327140abdd..dac438381319 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,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * 
@@ -55,24 +84,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.
    * 
@@ -82,24 +119,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.
    * 
@@ -109,24 +154,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.
    * 
@@ -136,24 +189,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.
    * 
@@ -163,26 +224,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.
@@ -193,24 +262,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.
    * 
@@ -220,26 +297,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 58aaa13de8ac..bff407ca7a3d 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,114 +1,156 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; - 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; @@ -120,8 +162,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)); } @@ -135,8 +176,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; @@ -146,15 +187,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; } @@ -176,129 +217,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(); @@ -313,9 +361,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 @@ -334,7 +382,8 @@ 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); int from_bitField0_ = bitField0_; if (propertyDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +402,39 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions 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.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; @@ -392,7 +442,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()) { @@ -411,9 +462,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_); } @@ -445,25 +497,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) { @@ -473,28 +527,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 { @@ -502,11 +568,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) { @@ -516,13 +586,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 { @@ -530,11 +605,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) { @@ -551,14 +630,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()); @@ -569,13 +653,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(); @@ -589,11 +678,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) { @@ -610,11 +703,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) { @@ -628,14 +725,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()); @@ -646,18 +748,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); @@ -665,11 +771,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) { @@ -682,11 +792,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) { @@ -699,39 +813,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 { @@ -739,45 +867,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(), @@ -786,9 +934,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); } @@ -798,12 +946,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(); } @@ -812,27 +960,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; @@ -847,6 +995,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..8d10df64df05 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 69% 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 4821a8245295..da7cda01a694 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,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; @@ -26,38 +44,42 @@ private PublishAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,30 +88,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 { @@ -100,34 +122,42 @@ public java.lang.String getTopicId() { public static final int MESSAGES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList messages_; /** + * + * *
    * 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. */ @@ -135,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; @@ -160,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_); } @@ -196,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; } @@ -230,129 +261,135 @@ 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(); @@ -364,9 +401,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_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 @@ -385,7 +422,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); + com.google.cloud.contentwarehouse.v1.PublishAction result = + new com.google.cloud.contentwarehouse.v1.PublishAction(this); int from_bitField0_ = bitField0_; result.topicId_ = topicId_; if (((bitField0_ & 0x00000001) != 0)) { @@ -401,38 +439,39 @@ public com.google.cloud.contentwarehouse.v1.PublishAction 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.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; @@ -440,7 +479,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_; onChanged(); @@ -481,23 +521,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topicId_ = input.readStringRequireUtf8(); - - 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(); + + 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) { @@ -507,23 +550,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; @@ -532,21 +578,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 { @@ -554,98 +601,115 @@ 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) { + public Builder setTopicId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topicId_ = value; 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() { - + topicId_ = getDefaultInstance().getTopicId(); onChanged(); 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) { + public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topicId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList messages_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -653,80 +717,90 @@ 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) { + public Builder setMessages(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); + throw new NullPointerException(); + } + ensureMessagesIsMutable(); messages_.set(index, value); onChanged(); 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) { + public Builder addMessages(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); + throw new NullPointerException(); + } + ensureMessagesIsMutable(); messages_.add(value); onChanged(); 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_); onChanged(); return this; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @return This builder for chaining. */ public Builder clearMessages() { @@ -736,28 +810,30 @@ public Builder clearMessages() { 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) { + public Builder addMessagesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -767,12 +843,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(); } @@ -781,27 +857,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; @@ -816,6 +892,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..8e06f58aa0c9 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 92ab17b03b55..f2e841cfa172 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,78 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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.).
@@ -80,51 +108,55 @@ 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();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    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_;
     /**
+     *
+     *
      * 
      * Start index of the highlight.
      * 
* * int32 start_index = 1; + * * @return The startIndex. */ @java.lang.Override @@ -135,11 +167,14 @@ public int getStartIndex() { public static final int END_INDEX_FIELD_NUMBER = 2; private int endIndex_; /** + * + * *
      * End index of the highlight, exclusive.
      * 
* * int32 end_index = 2; + * * @return The endIndex. */ @java.lang.Override @@ -148,6 +183,7 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +195,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_); } @@ -177,12 +212,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; @@ -192,17 +225,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; } @@ -224,87 +256,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 @@ -314,6 +353,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.).
@@ -321,33 +362,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();
@@ -359,9 +400,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
@@ -380,7 +421,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);
+        com.google.cloud.contentwarehouse.v1.QAResult.Highlight result =
+            new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(this);
         result.startIndex_ = startIndex_;
         result.endIndex_ = endIndex_;
         onBuilt();
@@ -391,38 +433,41 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight 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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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();
-
-                break;
-              } // case 8
-              case 16: {
-                endIndex_ = input.readInt32();
-
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  startIndex_ = input.readInt32();
+
+                  break;
+                } // case 8
+              case 16:
+                {
+                  endIndex_ = input.readInt32();
+
+                  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,13 +538,16 @@ public Builder mergeFrom(
         return this;
       }
 
-      private int startIndex_ ;
+      private int startIndex_;
       /**
+       *
+       *
        * 
        * Start index of the highlight.
        * 
* * int32 start_index = 1; + * * @return The startIndex. */ @java.lang.Override @@ -503,42 +555,51 @@ 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. */ public Builder setStartIndex(int value) { - + startIndex_ = value; onChanged(); return this; } /** + * + * *
        * Start index of the highlight.
        * 
* * int32 start_index = 1; + * * @return This builder for chaining. */ public Builder clearStartIndex() { - + startIndex_ = 0; onChanged(); return this; } - private int endIndex_ ; + private int endIndex_; /** + * + * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; + * * @return The endIndex. */ @java.lang.Override @@ -546,34 +607,41 @@ 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. */ public Builder setEndIndex(int value) { - + endIndex_ = value; onChanged(); return this; } /** + * + * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; + * * @return This builder for chaining. */ public Builder clearEndIndex() { - + endIndex_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -586,12 +654,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(); } @@ -600,27 +668,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; @@ -635,12 +704,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; private java.util.List highlights_; /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -648,10 +718,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.
    * 
@@ -659,11 +732,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.
    * 
@@ -675,6 +750,8 @@ public int getHighlightsCount() { return highlights_.size(); } /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -686,6 +763,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int return highlights_.get(index); } /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -701,6 +780,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; private float confidenceScore_; /** + * + * *
    * The calibrated confidence score for this document, in the range
    * [0., 1.]. This represents the confidence level for whether the returned
@@ -708,6 +789,7 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl
    * 
* * float confidence_score = 2; + * * @return The confidenceScore. */ @java.lang.Override @@ -716,6 +798,7 @@ public float getConfidenceScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -727,8 +810,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)); } @@ -745,12 +827,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; @@ -760,18 +840,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; } @@ -788,137 +867,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(); @@ -935,9 +1019,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 @@ -956,7 +1040,8 @@ 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); int from_bitField0_ = bitField0_; if (highlightsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -976,38 +1061,39 @@ public com.google.cloud.contentwarehouse.v1.QAResult 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.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; @@ -1034,9 +1120,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_); } @@ -1071,30 +1158,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(); + 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(); - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -1104,28 +1194,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 { @@ -1133,6 +1233,8 @@ public java.util.List g } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1147,6 +1249,8 @@ public int getHighlightsCount() { } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1161,6 +1265,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1182,6 +1288,8 @@ public Builder setHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1189,7 +1297,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()); @@ -1200,6 +1309,8 @@ public Builder setHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1220,6 +1331,8 @@ public Builder addHighlights(com.google.cloud.contentwarehouse.v1.QAResult.Highl return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1241,6 +1354,8 @@ public Builder addHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1259,6 +1374,8 @@ public Builder addHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1266,7 +1383,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()); @@ -1277,6 +1395,8 @@ public Builder addHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1284,11 +1404,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); @@ -1296,6 +1416,8 @@ public Builder addAllHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1313,6 +1435,8 @@ public Builder clearHighlights() { return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1330,6 +1454,8 @@ public Builder removeHighlights(int index) { return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1341,6 +1467,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder getHighli return getHighlightsFieldBuilder().getBuilder(index); } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1350,19 +1478,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 { @@ -1370,6 +1502,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1377,10 +1511,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.
      * 
@@ -1389,37 +1525,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
@@ -1427,6 +1571,7 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighli
      * 
* * float confidence_score = 2; + * * @return The confidenceScore. */ @java.lang.Override @@ -1434,6 +1579,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
@@ -1441,16 +1588,19 @@ public float getConfidenceScore() {
      * 
* * float confidence_score = 2; + * * @param value The confidenceScore to set. * @return This builder for chaining. */ public Builder setConfidenceScore(float value) { - + confidenceScore_ = value; onChanged(); return this; } /** + * + * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1458,17 +1608,18 @@ public Builder setConfidenceScore(float value) {
      * 
* * float confidence_score = 2; + * * @return This builder for chaining. */ public Builder clearConfidenceScore() { - + confidenceScore_ = 0F; 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); } @@ -1478,12 +1629,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(); } @@ -1492,27 +1643,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; @@ -1527,6 +1678,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..5b2190629d79 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 52bcc9b57cf2..023e6b26258b 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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
    * 
@@ -64,6 +92,8 @@ public enum RawDocumentFileType ; /** + * + * *
    * No raw document specified or it is non-parsable
    * 
@@ -72,6 +102,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Adobe PDF format
    * 
@@ -80,6 +112,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_PDF_VALUE = 1; /** + * + * *
    * Microsoft Word format
    * 
@@ -88,6 +122,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_DOCX_VALUE = 2; /** + * + * *
    * Microsoft Excel format
    * 
@@ -96,6 +132,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_XLSX_VALUE = 3; /** + * + * *
    * Microsoft Powerpoint format
    * 
@@ -104,6 +142,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_PPTX_VALUE = 4; /** + * + * *
    * UTF-8 encoded text format
    * 
@@ -112,7 +152,6 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_TEXT_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,13 +176,20 @@ 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; - 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; + default: + return null; } } @@ -151,28 +197,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); } @@ -181,8 +227,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; @@ -198,4 +243,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 68% 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 767490d9953b..ab3547962883 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,37 +45,41 @@ private RemoveFromFolderAction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RemoveFromFolderAction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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;
   private volatile java.lang.Object condition_;
   /**
+   *
+   *
    * 
    * Condition of the action to be executed.
    * 
* * string condition = 1; + * * @return The condition. */ @java.lang.Override @@ -66,29 +88,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 { @@ -99,6 +121,8 @@ public java.lang.String getCondition() { public static final int FOLDER_FIELD_NUMBER = 2; private volatile java.lang.Object folder_; /** + * + * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -106,6 +130,7 @@ public java.lang.String getCondition() {
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The folder. */ @java.lang.Override @@ -114,14 +139,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:
@@ -129,16 +155,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 { @@ -147,6 +172,7 @@ public java.lang.String getFolder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +184,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_); } @@ -189,17 +214,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; } @@ -221,96 +245,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.
@@ -318,33 +350,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();
@@ -356,9 +387,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
@@ -377,7 +408,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);
+      com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction result =
+          new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(this);
       result.condition_ = condition_;
       result.folder_ = folder_;
       onBuilt();
@@ -388,38 +420,39 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction 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.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;
@@ -427,7 +460,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_;
         onChanged();
@@ -462,22 +496,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              condition_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              folder_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                condition_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                folder_ = input.readStringRequireUtf8();
+
+                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) {
@@ -490,18 +527,20 @@ public Builder mergeFrom(
 
     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; @@ -510,20 +549,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 { @@ -531,54 +571,61 @@ 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) { + public Builder setCondition(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + condition_ = value; onChanged(); return this; } /** + * + * *
      * Condition of the action to be executed.
      * 
* * string condition = 1; + * * @return This builder for chaining. */ public Builder clearCondition() { - + condition_ = getDefaultInstance().getCondition(); onChanged(); 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) { + public Builder setConditionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; onChanged(); return this; @@ -586,6 +633,8 @@ public Builder setConditionBytes( private java.lang.Object folder_ = ""; /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -593,13 +642,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; @@ -608,6 +657,8 @@ public java.lang.String getFolder() { } } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -615,15 +666,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 { @@ -631,6 +681,8 @@ public java.lang.String getFolder() { } } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -638,20 +690,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) { + public Builder setFolder(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + folder_ = value; onChanged(); return this; } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -659,15 +713,18 @@ public Builder setFolder(
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearFolder() { - + folder_ = getDefaultInstance().getFolder(); onChanged(); return this; } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -675,23 +732,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) { + public Builder setFolderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folder_ = 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); } @@ -701,12 +758,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(); } @@ -715,27 +772,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; @@ -750,6 +807,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..8a88cebb116f 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 1ac43f51ab9d..a94aed7b8760 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,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -62,18 +83,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.
    * 
@@ -86,6 +114,7 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,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 { if (userInfo_ != null) { output.writeMessage(1, getUserInfo()); } @@ -112,8 +140,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; @@ -123,17 +150,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; @@ -156,129 +183,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(); @@ -292,9 +325,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 @@ -313,7 +346,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); + com.google.cloud.contentwarehouse.v1.RequestMetadata result = + new com.google.cloud.contentwarehouse.v1.RequestMetadata(this); if (userInfoBuilder_ == null) { result.userInfo_ = userInfo_; } else { @@ -327,38 +361,39 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata 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.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; @@ -366,7 +401,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()); } @@ -396,19 +432,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUserInfoFieldBuilder().getBuilder(), - extensionRegistry); - - 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); + + 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) { @@ -421,34 +457,47 @@ public Builder mergeFrom( 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 userInfoBuilder_ != null || userInfo_ != null; } /** + * + * *
      * 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.
      * 
@@ -469,6 +518,8 @@ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -487,6 +538,8 @@ public Builder setUserInfo( return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -497,7 +550,9 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value if (userInfoBuilder_ == null) { if (userInfo_ != null) { userInfo_ = - com.google.cloud.contentwarehouse.v1.UserInfo.newBuilder(userInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.UserInfo.newBuilder(userInfo_) + .mergeFrom(value) + .buildPartial(); } else { userInfo_ = value; } @@ -509,6 +564,8 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -527,6 +584,8 @@ public Builder clearUserInfo() { return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -534,11 +593,13 @@ public Builder clearUserInfo() { * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; */ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder() { - + onChanged(); return getUserInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -549,11 +610,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.
      * 
@@ -561,21 +625,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); } @@ -585,12 +652,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(); } @@ -599,27 +666,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; @@ -634,6 +701,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..aae0d947d4eb 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 d5b2d6997798..3ce5b1560a84 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,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -65,30 +87,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 { @@ -97,6 +119,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,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_); } @@ -133,15 +155,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; } @@ -161,129 +183,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(); @@ -293,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_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 @@ -314,7 +343,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); + com.google.cloud.contentwarehouse.v1.ResponseMetadata result = + new com.google.cloud.contentwarehouse.v1.ResponseMetadata(this); result.requestId_ = requestId_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata 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.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; @@ -363,7 +394,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_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + requestId_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( 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; @@ -438,21 +474,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 { @@ -460,64 +497,71 @@ 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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -527,12 +571,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(); } @@ -541,27 +585,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; @@ -576,6 +620,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..24c948ae956f 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 73% 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 2a52af559718..480aa5104f61 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,39 +47,37 @@ private Rule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Rule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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); } - /** - * Protobuf enum {@code google.cloud.contentwarehouse.v1.Rule.TriggerType} - */ - public enum TriggerType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ + /** Protobuf enum {@code google.cloud.contentwarehouse.v1.Rule.TriggerType} */ + public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { + /** UNKNOWN = 0; */ UNKNOWN(0), /** + * + * *
      * Trigger for create document action.
      * 
@@ -70,6 +86,8 @@ public enum TriggerType */ ON_CREATE(1), /** + * + * *
      * Trigger for update document action.
      * 
@@ -80,11 +98,11 @@ public enum TriggerType UNRECOGNIZED(-1), ; - /** - * UNKNOWN = 0; - */ + /** UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Trigger for create document action.
      * 
@@ -93,6 +111,8 @@ public enum TriggerType */ public static final int ON_CREATE_VALUE = 1; /** + * + * *
      * Trigger for update document action.
      * 
@@ -101,7 +121,6 @@ public enum TriggerType */ public static final int ON_UPDATE_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -126,49 +145,49 @@ 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; - default: return null; + case 0: + return UNKNOWN; + case 1: + return ON_CREATE; + case 4: + return ON_UPDATE; + 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; @@ -188,11 +207,14 @@ private TriggerType(int value) { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** + * + * *
    * Short description of the rule and its context.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -201,29 +223,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 { @@ -234,12 +256,15 @@ public java.lang.String getDescription() { public static final int RULE_ID_FIELD_NUMBER = 2; 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 @@ -248,30 +273,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 { @@ -282,33 +307,46 @@ public java.lang.String getRuleId() { public static final int TRIGGER_TYPE_FIELD_NUMBER = 3; private int triggerType_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = com.google.cloud.contentwarehouse.v1.Rule.TriggerType.valueOf(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.valueOf(triggerType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED + : result; } public static final int CONDITION_FIELD_NUMBER = 4; private volatile java.lang.Object condition_; /** + * + * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -317,6 +355,7 @@ public java.lang.String getRuleId() {
    * 
* * string condition = 4; + * * @return The condition. */ @java.lang.Override @@ -325,14 +364,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.
@@ -341,16 +381,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 { @@ -361,6 +400,8 @@ public java.lang.String getCondition() { public static final int ACTIONS_FIELD_NUMBER = 5; private java.util.List actions_; /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -372,6 +413,8 @@ public java.util.List getActionsLis return actions_; } /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -379,11 +422,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.
    * 
@@ -395,6 +440,8 @@ public int getActionsCount() { return actions_.size(); } /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -406,6 +453,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.
    * 
@@ -413,12 +462,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; @@ -430,8 +479,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_); } @@ -463,15 +511,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; @@ -481,22 +527,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; } @@ -525,130 +568,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(); @@ -671,9 +720,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 @@ -692,7 +741,8 @@ 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); int from_bitField0_ = bitField0_; result.description_ = description_; result.ruleId_ = ruleId_; @@ -715,38 +765,39 @@ public com.google.cloud.contentwarehouse.v1.Rule 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.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; @@ -788,9 +839,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Rule other) { actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); - actionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getActionsFieldBuilder() : null; + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActionsFieldBuilder() + : null; } else { actionsBuilder_.addAllMessages(other.actions_); } @@ -822,45 +874,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - ruleId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - triggerType_ = input.readEnum(); - - break; - } // case 24 - case 34: { - condition_ = input.readStringRequireUtf8(); - - 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(); + + break; + } // case 10 + case 18: + { + ruleId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + triggerType_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + condition_ = input.readStringRequireUtf8(); + + 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) { @@ -870,22 +927,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; @@ -894,20 +954,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 { @@ -915,54 +976,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Short description of the rule and its context.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -970,19 +1038,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; @@ -991,21 +1061,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 { @@ -1013,57 +1084,64 @@ 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) { + public Builder setRuleId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ruleId_ = value; 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() { - + ruleId_ = getDefaultInstance().getRuleId(); onChanged(); 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) { + public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ruleId_ = value; onChanged(); return this; @@ -1071,51 +1149,67 @@ 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. */ public Builder setTriggerTypeValue(int value) { - + triggerType_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = com.google.cloud.contentwarehouse.v1.Rule.TriggerType.valueOf(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.valueOf(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. */ @@ -1123,21 +1217,24 @@ public Builder setTriggerType(com.google.cloud.contentwarehouse.v1.Rule.TriggerT if (value == null) { throw new NullPointerException(); } - + triggerType_ = value.getNumber(); onChanged(); 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() { - + triggerType_ = 0; onChanged(); return this; @@ -1145,6 +1242,8 @@ public Builder clearTriggerType() { private java.lang.Object condition_ = ""; /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1153,13 +1252,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; @@ -1168,6 +1267,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1176,15 +1277,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 { @@ -1192,6 +1292,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1200,20 +1302,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) { + public Builder setCondition(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + condition_ = value; onChanged(); return this; } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1222,15 +1326,18 @@ public Builder setCondition(
      * 
* * string condition = 4; + * * @return This builder for chaining. */ public Builder clearCondition() { - + condition_ = getDefaultInstance().getCondition(); onChanged(); return this; } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1239,34 +1346,40 @@ 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) { + public Builder setConditionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; onChanged(); return this; } private java.util.List actions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -1281,6 +1394,8 @@ public java.util.List getActionsLis } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1295,6 +1410,8 @@ public int getActionsCount() { } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1309,14 +1426,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(); @@ -1330,6 +1448,8 @@ public Builder setActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1348,6 +1468,8 @@ public Builder setActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1368,14 +1490,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(); @@ -1389,14 +1512,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()); @@ -1407,6 +1531,8 @@ public Builder addActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1425,6 +1551,8 @@ public Builder addActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1435,8 +1563,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); @@ -1444,6 +1571,8 @@ public Builder addAllActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1461,6 +1590,8 @@ public Builder clearActions() { return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1478,39 +1609,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 { @@ -1518,6 +1654,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1525,49 +1663,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1577,12 +1721,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(); } @@ -1591,27 +1735,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; @@ -1626,6 +1770,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 c96f6cf0fb72..75bde730623c 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,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -63,11 +85,14 @@ public boolean hasRule() { return rule_ != null; } /** + * + * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ @java.lang.Override @@ -75,6 +100,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** + * + * *
    * Represents the rule.
    * 
@@ -89,6 +116,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { public static final int ACTION_OUTPUTS_FIELD_NUMBER = 2; private java.util.List actionOutputs_; /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -100,6 +129,8 @@ public java.util.List getActi return actionOutputs_; } /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -107,11 +138,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.
    * 
@@ -123,6 +156,8 @@ public int getActionOutputsCount() { return actionOutputs_.size(); } /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -134,6 +169,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.
    * 
@@ -147,6 +184,7 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +196,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()); } @@ -176,12 +213,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; @@ -191,20 +226,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; } @@ -230,129 +264,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(); @@ -373,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_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 @@ -394,7 +434,8 @@ 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); int from_bitField0_ = bitField0_; if (ruleBuilder_ == null) { result.rule_ = rule_; @@ -418,38 +459,39 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair 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.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; @@ -457,7 +499,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()); } @@ -479,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleActionsPair ot actionOutputsBuilder_ = null; actionOutputs_ = other.actionOutputs_; bitField0_ = (bitField0_ & ~0x00000001); - actionOutputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getActionOutputsFieldBuilder() : null; + actionOutputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActionOutputsFieldBuilder() + : null; } else { actionOutputsBuilder_.addAllMessages(other.actionOutputs_); } @@ -513,32 +557,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRuleFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); - 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: + 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) { @@ -548,38 +593,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 ruleBuilder_ != null || rule_ != null; } /** + * + * *
      * 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.
      * 
@@ -600,14 +659,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(); onChanged(); @@ -618,6 +678,8 @@ public Builder setRule( return this; } /** + * + * *
      * Represents the rule.
      * 
@@ -628,7 +690,9 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { if (rule_ != null) { rule_ = - com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.Rule.newBuilder(rule_) + .mergeFrom(value) + .buildPartial(); } else { rule_ = value; } @@ -640,6 +704,8 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * Represents the rule.
      * 
@@ -658,6 +724,8 @@ public Builder clearRule() { return this; } /** + * + * *
      * Represents the rule.
      * 
@@ -665,11 +733,13 @@ public Builder clearRule() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { - + onChanged(); return getRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Represents the rule.
      * 
@@ -680,11 +750,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.
      * 
@@ -692,39 +765,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_ & 0x00000001) != 0)) { - actionOutputs_ = new java.util.ArrayList(actionOutputs_); + actionOutputs_ = + new java.util.ArrayList( + actionOutputs_); bitField0_ |= 0x00000001; - } + } } 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 { @@ -732,6 +817,8 @@ public java.util.List getActi } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -746,6 +833,8 @@ public int getActionOutputsCount() { } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -760,6 +849,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int in } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -781,6 +872,8 @@ public Builder setActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -799,6 +892,8 @@ public Builder setActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -819,6 +914,8 @@ public Builder addActionOutputs(com.google.cloud.contentwarehouse.v1.ActionOutpu return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -840,6 +937,8 @@ public Builder addActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -858,6 +957,8 @@ public Builder addActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -876,6 +977,8 @@ public Builder addActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -886,8 +989,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); @@ -895,6 +997,8 @@ public Builder addAllActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -912,6 +1016,8 @@ public Builder clearActionOutputs() { return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -929,6 +1035,8 @@ public Builder removeActionOutputs(int index) { return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -940,6 +1048,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder getActionOutput return getActionOutputsFieldBuilder().getBuilder(index); } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -949,19 +1059,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 { @@ -969,6 +1082,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -976,10 +1091,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.
      * 
@@ -988,26 +1105,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_ & 0x00000001) != 0), getParentForChildren(), @@ -1016,9 +1142,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); } @@ -1028,12 +1154,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(); } @@ -1042,27 +1168,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; @@ -1077,6 +1203,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..84d7ea007b69 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 69% 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 ff7436dc2047..f47f9afd7bd5 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Records the output of Rule Engine including rule evaluation and actions
  * result.
@@ -11,52 +28,57 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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;
   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 @@ -65,29 +87,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 { @@ -98,11 +120,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 @@ -110,18 +135,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.
    * 
@@ -129,19 +161,23 @@ 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() { + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder + getRuleEvaluatorOutputOrBuilder() { return getRuleEvaluatorOutput(); } 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 @@ -149,19 +185,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.
@@ -170,11 +213,13 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder
+      getActionExecutorOutputOrBuilder() {
     return getActionExecutorOutput();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,8 +231,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());
     }
@@ -207,12 +251,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_);
@@ -225,24 +268,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;
@@ -271,96 +312,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.
@@ -368,33 +417,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();
@@ -416,9 +464,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
@@ -437,7 +485,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);
+      com.google.cloud.contentwarehouse.v1.RuleEngineOutput result =
+          new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(this);
       result.documentName_ = documentName_;
       if (ruleEvaluatorOutputBuilder_ == null) {
         result.ruleEvaluatorOutput_ = ruleEvaluatorOutput_;
@@ -457,38 +506,39 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput 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.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;
@@ -496,7 +546,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_;
         onChanged();
@@ -533,31 +584,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRuleEvaluatorOutputFieldBuilder().getBuilder(),
-                  extensionRegistry);
+            case 10:
+              {
+                input.readMessage(
+                    getRuleEvaluatorOutputFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getActionExecutorOutputFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(
+                    getActionExecutorOutputFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              documentName_ = input.readStringRequireUtf8();
+                break;
+              } // case 18
+            case 26:
+              {
+                documentName_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                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) {
@@ -570,18 +623,20 @@ public Builder mergeFrom(
 
     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; @@ -590,20 +645,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 { @@ -611,54 +667,61 @@ 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) { + public Builder setDocumentName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentName_ = value; 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() { - + documentName_ = getDefaultInstance().getDocumentName(); onChanged(); 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) { + public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentName_ = value; onChanged(); return this; @@ -666,41 +729,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 ruleEvaluatorOutputBuilder_ != null || ruleEvaluatorOutput_ != null; } /** + * + * *
      * 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(); @@ -714,6 +791,8 @@ public Builder setRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.RuleE return this; } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -732,17 +811,23 @@ 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 (ruleEvaluatorOutput_ != null) { ruleEvaluatorOutput_ = - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.newBuilder(ruleEvaluatorOutput_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.newBuilder( + ruleEvaluatorOutput_) + .mergeFrom(value) + .buildPartial(); } else { ruleEvaluatorOutput_ = value; } @@ -754,6 +839,8 @@ public Builder mergeRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.Rul return this; } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -772,33 +859,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() { + 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.
      * 
@@ -806,14 +902,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_; @@ -821,44 +920,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 actionExecutorOutputBuilder_ != null || actionExecutorOutput_ != null; } /** + * + * *
      * 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(); @@ -872,12 +988,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) { @@ -891,18 +1010,25 @@ 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 (actionExecutorOutput_ != null) { actionExecutorOutput_ = - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.newBuilder(actionExecutorOutput_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.newBuilder( + actionExecutorOutput_) + .mergeFrom(value) + .buildPartial(); } else { actionExecutorOutput_ = value; } @@ -914,12 +1040,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() { if (actionExecutorOutputBuilder_ == null) { @@ -933,58 +1062,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() { + 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); } @@ -994,12 +1138,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(); } @@ -1008,27 +1152,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; @@ -1043,6 +1187,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..78d0addde472 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..ce3cb14bb1f8
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
@@ -0,0 +1,372 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/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}\""
+          + "\376\001\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\"8"
+          + "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020"
+          + "\001\022\r\n\tON_UPDATE\020\004\"\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\213\001\n$com.google.cloud.conte"
+          + "ntwarehouse.v1B\017RuleEngineProtoP\001ZPgoogl"
+          + "e.golang.org/genproto/googleapis/cloud/c"
+          + "ontentwarehouse/v1;contentwarehouseb\006pro"
+          + "to3"
+    };
+    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 f7201664fde3..673f884a18f3 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,32 +45,35 @@ private RuleEvaluatorOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuleEvaluatorOutput(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List triggeredRules_; /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -64,6 +85,8 @@ public java.util.List getTriggeredRul return triggeredRules_; } /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -71,11 +94,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.
    * 
@@ -87,6 +112,8 @@ public int getTriggeredRulesCount() { return triggeredRules_.size(); } /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -98,6 +125,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.
    * 
@@ -105,14 +134,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; private java.util.List matchedRules_; /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -124,6 +154,8 @@ public java.util.List getMatchedRules return matchedRules_; } /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -131,11 +163,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.
    * 
@@ -147,6 +181,8 @@ public int getMatchedRulesCount() { return matchedRules_.size(); } /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -158,6 +194,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.
    * 
@@ -165,14 +203,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; private java.util.List invalidRules_; /** + * + * *
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -185,6 +224,8 @@ public java.util.List getInval
     return invalidRules_;
   }
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -193,11 +234,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.
@@ -210,6 +253,8 @@ public int getInvalidRulesCount() {
     return invalidRules_.size();
   }
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -222,6 +267,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.
@@ -236,6 +283,7 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -247,8 +295,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));
     }
@@ -268,16 +315,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;
@@ -287,19 +331,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;
   }
@@ -329,129 +371,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(); @@ -480,9 +529,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 @@ -501,7 +550,8 @@ 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); int from_bitField0_ = bitField0_; if (triggeredRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -538,38 +588,39 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput 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.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; @@ -577,7 +628,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()) { @@ -596,9 +648,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_); } @@ -622,9 +675,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_); } @@ -648,9 +702,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_); } @@ -682,51 +737,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) { @@ -736,21 +793,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.
      * 
@@ -765,6 +830,8 @@ public java.util.List getTriggeredRul } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -779,6 +846,8 @@ public int getTriggeredRulesCount() { } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -793,14 +862,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(); @@ -814,6 +884,8 @@ public Builder setTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -832,6 +904,8 @@ public Builder setTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -852,14 +926,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(); @@ -873,6 +948,8 @@ public Builder addTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -891,6 +968,8 @@ public Builder addTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -909,6 +988,8 @@ public Builder addTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -919,8 +1000,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); @@ -928,6 +1008,8 @@ public Builder addAllTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -945,6 +1027,8 @@ public Builder clearTriggeredRules() { return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -962,17 +1046,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.
      * 
@@ -982,19 +1069,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 { @@ -1002,6 +1092,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBui } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1009,38 +1101,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(), @@ -1051,18 +1152,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.
      * 
@@ -1077,6 +1185,8 @@ public java.util.List getMatchedRules } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1091,6 +1201,8 @@ public int getMatchedRulesCount() { } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1105,14 +1217,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(); @@ -1126,6 +1239,8 @@ public Builder setMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1144,6 +1259,8 @@ public Builder setMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1164,14 +1281,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(); @@ -1185,6 +1303,8 @@ public Builder addMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1203,6 +1323,8 @@ public Builder addMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1221,6 +1343,8 @@ public Builder addMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1231,8 +1355,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); @@ -1240,6 +1363,8 @@ public Builder addAllMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1257,6 +1382,8 @@ public Builder clearMatchedRules() { return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1274,39 +1401,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 { @@ -1314,6 +1446,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuild } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1321,60 +1455,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.
@@ -1390,6 +1538,8 @@ public java.util.List getInval
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1405,6 +1555,8 @@ public int getInvalidRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1420,6 +1572,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int inde
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1442,6 +1596,8 @@ public Builder setInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1461,6 +1617,8 @@ public Builder setInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1482,6 +1640,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.
@@ -1504,6 +1664,8 @@ public Builder addInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1523,6 +1685,8 @@ public Builder addInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1542,6 +1706,8 @@ public Builder addInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1553,8 +1719,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);
@@ -1562,6 +1727,8 @@ public Builder addAllInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1580,6 +1747,8 @@ public Builder clearInvalidRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1598,6 +1767,8 @@ public Builder removeInvalidRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1610,6 +1781,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.
@@ -1620,11 +1793,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.
@@ -1632,8 +1808,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 {
@@ -1641,6 +1817,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1649,10 +1827,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.
@@ -1662,10 +1842,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.
@@ -1673,27 +1855,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);
     }
 
@@ -1703,12 +1888,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();
   }
@@ -1717,27 +1902,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;
@@ -1752,6 +1937,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..e627035b2840 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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..ade0efb33469 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 72% 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 d910c233cc62..626d631c9642 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,32 +46,35 @@ private RuleSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuleSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 6; + * * @return The name. */ @java.lang.Override @@ -70,14 +92,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:
@@ -86,16 +109,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 { @@ -106,11 +128,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** + * + * *
    * Short description of the rule-set.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -119,29 +144,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 { @@ -152,11 +177,14 @@ public java.lang.String getDescription() { public static final int SOURCE_FIELD_NUMBER = 2; 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 +193,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 { @@ -198,6 +226,8 @@ public java.lang.String getSource() { public static final int RULES_FIELD_NUMBER = 3; private java.util.List rules_; /** + * + * *
    * List of rules given by the customer.
    * 
@@ -209,6 +239,8 @@ public java.util.List getRulesList() return rules_; } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -216,11 +248,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.
    * 
@@ -232,6 +266,8 @@ public int getRulesCount() { return rules_.size(); } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -243,6 +279,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { return rules_.get(index); } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -250,12 +288,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; @@ -267,8 +305,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_); } @@ -297,8 +334,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_); @@ -311,21 +347,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; } @@ -352,130 +385,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(); @@ -496,9 +535,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 @@ -517,7 +556,8 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -539,38 +579,39 @@ public com.google.cloud.contentwarehouse.v1.RuleSet 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.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; @@ -609,9 +650,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleSet other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -643,40 +685,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); + case 10: + { + description_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - source_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + source_ = input.readStringRequireUtf8(); - 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(); + 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(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -686,10 +732,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:
@@ -698,13 +747,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; @@ -713,6 +762,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -721,15 +772,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 { @@ -737,6 +787,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -745,20 +797,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -767,15 +821,18 @@ public Builder setName(
      * 
* * string name = 6; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -784,16 +841,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -801,18 +858,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; @@ -821,20 +880,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 { @@ -842,54 +902,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Short description of the rule-set.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -897,18 +964,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; @@ -917,20 +986,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 { @@ -938,72 +1008,85 @@ 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) { + public Builder setSource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** + * + * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; + * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); 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) { + public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; } private java.util.List rules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); 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> 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.
      * 
@@ -1018,6 +1101,8 @@ public java.util.List getRulesList() } } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1032,6 +1117,8 @@ public int getRulesCount() { } } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1046,14 +1133,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(); @@ -1067,6 +1155,8 @@ public Builder setRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1085,6 +1175,8 @@ public Builder setRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1105,14 +1197,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(); @@ -1126,14 +1219,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()); @@ -1144,6 +1238,8 @@ public Builder addRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1162,6 +1258,8 @@ public Builder addRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1172,8 +1270,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); @@ -1181,6 +1278,8 @@ public Builder addAllRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1198,6 +1297,8 @@ public Builder clearRules() { return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1215,39 +1316,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 { @@ -1255,6 +1361,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( } } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1262,49 +1370,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1314,12 +1427,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(); } @@ -1328,27 +1441,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; @@ -1363,6 +1476,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 1d38741c7f7f..c0929b729624 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -16,10 +34,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:
@@ -28,61 +49,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.
    * 
@@ -91,6 +125,8 @@ public interface RuleSetOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Rule getRules(int index); /** + * + * *
    * List of rules given by the customer.
    * 
@@ -99,21 +135,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..6a35760ffed0 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\202\323\344\223\0028\",/v1/" + + "{parent=projects/*/locations/*}/ruleSets" + + ":\010rule_set\332A\017parent,rule_set\022\251\001\n\nGetRule" + + "Set\0223.google.cloud.contentwarehouse.v1.G" + + "etRuleSetRequest\032).google.cloud.contentw" + + "arehouse.v1.RuleSet\";\202\323\344\223\002.\022,/v1/{name=p" + + "rojects/*/locations/*/ruleSets/*}\332A\004name" + + "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" + + "twarehouse.v1.UpdateRuleSetRequest\032).goo" + + "gle.cloud.contentwarehouse.v1.RuleSet\"G\202" + + "\323\344\223\00212,/v1/{name=projects/*/locations/*/" + + "ruleSets/*}:\001*\332A\rname,rule_set\022\234\001\n\rDelet" + + "eRuleSet\0226.google.cloud.contentwarehouse" + + ".v1.DeleteRuleSetRequest\032\026.google.protob" + + "uf.Empty\";\202\323\344\223\002.*,/v1/{name=projects/*/l" + + "ocations/*/ruleSets/*}\332A\004name\022\274\001\n\014ListRu" + + "leSets\0225.google.cloud.contentwarehouse.v" + + "1.ListRuleSetsRequest\0326.google.cloud.con" + + "tentwarehouse.v1.ListRuleSetsResponse\"=\202" + + "\323\344\223\002.\022,/v1/{parent=projects/*/locations/" + + "*}/ruleSets\332A\006parent\032S\312A\037contentwarehous" + + "e.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\217\001\n$com.google" + + ".cloud.contentwarehouse.v1B\023RuleSetServi" + + "ceProtoP\001ZPgoogle.golang.org/genproto/go" + + "ogleapis/cloud/contentwarehouse/v1;conte" + + "ntwarehouseb\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..647148239e93 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\"\232\001\n\024CreateRuleSetRequest\022@\n\006p" + + "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" + + "ogleapis.com/Location\022@\n\010rule_set\030\002 \001(\0132" + + ").google.cloud.contentwarehouse.v1.RuleS" + + "etB\003\340A\002\"R\n\021GetRuleSetRequest\022=\n\004name\030\001 \001" + + "(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis." + + "com/RuleSet\"\227\001\n\024UpdateRuleSetRequest\022=\n\004" + + "name\030\001 \001(\tB/\340A\002\372A)\n\'contentwarehouse.goo" + + "gleapis.com/RuleSet\022@\n\010rule_set\030\002 \001(\0132)." + + "google.cloud.contentwarehouse.v1.RuleSet" + + "B\003\340A\002\"U\n\024DeleteRuleSetRequest\022=\n\004name\030\001 " + + "\001(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis" + + ".com/RuleSet\"~\n\023ListRuleSetsRequest\022@\n\006p" + + "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" + + "ogleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleSetsResp" + + "onse\022<\n\trule_sets\030\001 \003(\0132).google.cloud.c" + + "ontentwarehouse.v1.RuleSet\022\027\n\017next_page_" + + "token\030\002 \001(\tB\226\001\n$com.google.cloud.content" + + "warehouse.v1B\032RuleSetServiceRequestProto" + + "P\001ZPgoogle.golang.org/genproto/googleapi" + + "s/cloud/contentwarehouse/v1;contentwareh" + + "ouseb\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/SearchDocumentsRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java similarity index 83% 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 0659f0edcbe0..5fdca7d5a571 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -28,38 +46,44 @@ private SearchDocumentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchDocumentsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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); } public static final int PARENT_FIELD_NUMBER = 1; 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 @@ -68,30 +92,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 { @@ -102,12 +128,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 @@ -115,19 +144,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.
@@ -136,18 +172,22 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   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 @@ -155,18 +195,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.).
    * 
@@ -181,6 +228,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu public static final int OFFSET_FIELD_NUMBER = 5; 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
@@ -193,6 +242,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
    * 
* * int32 offset = 5; + * * @return The offset. */ @java.lang.Override @@ -203,6 +253,8 @@ public int getOffset() { public static final int PAGE_SIZE_FIELD_NUMBER = 6; 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
@@ -210,6 +262,7 @@ public int getOffset() {
    * 
* * int32 page_size = 6; + * * @return The pageSize. */ @java.lang.Override @@ -220,6 +273,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object pageToken_; /** + * + * *
    * The token specifying the current offset within search results.
    * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -227,6 +282,7 @@ public int getPageSize() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -235,14 +291,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 [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -250,16 +307,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 { @@ -270,6 +326,8 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 8; 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
@@ -284,6 +342,7 @@ public java.lang.String getPageToken() {
    * 
* * string order_by = 8; + * * @return The orderBy. */ @java.lang.Override @@ -292,14 +351,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
@@ -314,16 +374,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 { @@ -334,6 +393,8 @@ public java.lang.String getOrderBy() { public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 9; private java.util.List histogramQueries_; /** + * + * *
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -363,10 +424,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
@@ -396,11 +460,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
@@ -434,6 +500,8 @@ public int getHistogramQueriesCount() {
     return histogramQueries_.size();
   }
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -467,6 +535,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
@@ -504,6 +574,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
   public static final int REQUIRE_TOTAL_SIZE_FIELD_NUMBER = 10;
   private boolean requireTotalSize_;
   /**
+   *
+   *
    * 
    * Optional. 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].
@@ -514,6 +586,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
    * 
* * bool require_total_size = 10; + * * @return The requireTotalSize. */ @java.lang.Override @@ -524,6 +597,8 @@ public boolean getRequireTotalSize() { public static final int QA_SIZE_LIMIT_FIELD_NUMBER = 11; private int qaSizeLimit_; /** + * + * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -532,6 +607,7 @@ public boolean getRequireTotalSize() {
    * 
* * int32 qa_size_limit = 11; + * * @return The qaSizeLimit. */ @java.lang.Override @@ -540,6 +616,7 @@ public int getQaSizeLimit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -551,8 +628,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_); } @@ -596,20 +672,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_); @@ -618,16 +690,13 @@ 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -637,39 +706,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.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 (getQaSizeLimit() - != other.getQaSizeLimit()) 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 (getQaSizeLimit() != other.getQaSizeLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -704,8 +764,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) + QA_SIZE_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getQaSizeLimit(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -714,129 +773,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(); @@ -877,9 +943,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 @@ -898,7 +964,8 @@ 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (requestMetadataBuilder_ == null) { @@ -934,38 +1001,39 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest 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.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; @@ -973,7 +1041,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_; onChanged(); @@ -1016,9 +1085,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsReq histogramQueriesBuilder_ = null; histogramQueries_ = other.histogramQueries_; bitField0_ = (bitField0_ & ~0x00000001); - histogramQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHistogramQueriesFieldBuilder() : null; + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; } else { histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); } @@ -1056,74 +1126,81 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getDocumentQueryFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 40: { - offset_ = input.readInt32(); - - break; - } // case 40 - case 48: { - pageSize_ = input.readInt32(); - - break; - } // case 48 - case 58: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - orderBy_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 80 - case 88: { - qaSizeLimit_ = input.readInt32(); - - break; - } // case 88 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getDocumentQueryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + offset_ = input.readInt32(); + + break; + } // case 40 + case 48: + { + pageSize_ = input.readInt32(); + + break; + } // case 48 + case 58: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + orderBy_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 80 + case 88: + { + qaSizeLimit_ = input.readInt32(); + + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1133,23 +1210,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; @@ -1158,21 +1240,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 { @@ -1180,57 +1265,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1238,36 +1336,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1289,6 +1400,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.
@@ -1308,6 +1421,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.
@@ -1315,11 +1430,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1331,6 +1449,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.
@@ -1350,6 +1470,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.
@@ -1357,12 +1479,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() {
+
       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.
@@ -1370,15 +1495,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.
@@ -1387,14 +1516,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_;
@@ -1402,34 +1534,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 documentQueryBuilder_ != null || documentQuery_ != null; } /** + * + * *
      * 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.).
      * 
@@ -1450,6 +1595,8 @@ public Builder setDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQue return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1468,6 +1615,8 @@ public Builder setDocumentQuery( return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1478,7 +1627,9 @@ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQ if (documentQueryBuilder_ == null) { if (documentQuery_ != null) { documentQuery_ = - com.google.cloud.contentwarehouse.v1.DocumentQuery.newBuilder(documentQuery_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentQuery.newBuilder(documentQuery_) + .mergeFrom(value) + .buildPartial(); } else { documentQuery_ = value; } @@ -1490,6 +1641,8 @@ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQ return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1508,6 +1661,8 @@ public Builder clearDocumentQuery() { return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1515,11 +1670,13 @@ public Builder clearDocumentQuery() { * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; */ public com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder getDocumentQueryBuilder() { - + onChanged(); return getDocumentQueryFieldBuilder().getBuilder(); } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1530,11 +1687,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.).
      * 
@@ -1542,21 +1702,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
@@ -1569,6 +1734,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
      * 
* * int32 offset = 5; + * * @return The offset. */ @java.lang.Override @@ -1576,6 +1742,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
@@ -1588,16 +1756,19 @@ public int getOffset() {
      * 
* * int32 offset = 5; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { - + offset_ = value; onChanged(); 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
@@ -1610,17 +1781,20 @@ public Builder setOffset(int value) {
      * 
* * int32 offset = 5; + * * @return This builder for chaining. */ public Builder clearOffset() { - + offset_ = 0; onChanged(); 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
@@ -1628,6 +1802,7 @@ public Builder clearOffset() {
      * 
* * int32 page_size = 6; + * * @return The pageSize. */ @java.lang.Override @@ -1635,6 +1810,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
@@ -1642,16 +1819,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 6; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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
@@ -1659,10 +1839,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 6; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1670,6 +1851,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1677,13 +1860,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; @@ -1692,6 +1875,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1699,15 +1884,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 { @@ -1715,6 +1899,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1722,20 +1908,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1743,15 +1931,18 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The token specifying the current offset within search results.
      * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -1759,16 +1950,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1776,6 +1967,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
@@ -1790,13 +1983,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; @@ -1805,6 +1998,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
@@ -1819,15 +2014,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 { @@ -1835,6 +2029,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
@@ -1849,20 +2045,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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -1877,15 +2075,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 8; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -1900,34 +2101,42 @@ 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } private java.util.List histogramQueries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHistogramQueriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - histogramQueries_ = new java.util.ArrayList(histogramQueries_); + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); bitField0_ |= 0x00000001; - } + } } 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
@@ -1956,7 +2165,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 {
@@ -1964,6 +2174,8 @@ public java.util.List getHi
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2000,6 +2212,8 @@ public int getHistogramQueriesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2036,6 +2250,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
@@ -2079,6 +2295,8 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2119,6 +2337,8 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2161,6 +2381,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
@@ -2204,6 +2426,8 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2244,6 +2468,8 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2284,6 +2510,8 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2316,8 +2544,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);
@@ -2325,6 +2552,8 @@ public Builder addAllHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2364,6 +2593,8 @@ public Builder clearHistogramQueries() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2403,6 +2634,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
@@ -2436,6 +2669,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
@@ -2464,14 +2699,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
@@ -2500,8 +2738,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 {
@@ -2509,6 +2747,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
@@ -2537,11 +2777,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
@@ -2572,10 +2815,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
@@ -2604,16 +2850,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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2623,8 +2875,10 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
       return histogramQueriesBuilder_;
     }
 
-    private boolean requireTotalSize_ ;
+    private boolean requireTotalSize_;
     /**
+     *
+     *
      * 
      * Optional. 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].
@@ -2635,6 +2889,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      * 
* * bool require_total_size = 10; + * * @return The requireTotalSize. */ @java.lang.Override @@ -2642,6 +2897,8 @@ public boolean getRequireTotalSize() { return requireTotalSize_; } /** + * + * *
      * Optional. 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].
@@ -2652,16 +2909,19 @@ public boolean getRequireTotalSize() {
      * 
* * bool require_total_size = 10; + * * @param value The requireTotalSize to set. * @return This builder for chaining. */ public Builder setRequireTotalSize(boolean value) { - + requireTotalSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. 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].
@@ -2672,17 +2932,20 @@ public Builder setRequireTotalSize(boolean value) {
      * 
* * bool require_total_size = 10; + * * @return This builder for chaining. */ public Builder clearRequireTotalSize() { - + requireTotalSize_ = false; onChanged(); return this; } - private int qaSizeLimit_ ; + private int qaSizeLimit_; /** + * + * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -2691,6 +2954,7 @@ public Builder clearRequireTotalSize() {
      * 
* * int32 qa_size_limit = 11; + * * @return The qaSizeLimit. */ @java.lang.Override @@ -2698,6 +2962,8 @@ public int getQaSizeLimit() { return qaSizeLimit_; } /** + * + * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -2706,16 +2972,19 @@ public int getQaSizeLimit() {
      * 
* * int32 qa_size_limit = 11; + * * @param value The qaSizeLimit to set. * @return This builder for chaining. */ public Builder setQaSizeLimit(int value) { - + qaSizeLimit_ = value; onChanged(); return this; } /** + * + * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -2724,17 +2993,18 @@ public Builder setQaSizeLimit(int value) {
      * 
* * int32 qa_size_limit = 11; + * * @return This builder for chaining. */ public Builder clearQaSizeLimit() { - + qaSizeLimit_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2744,12 +3014,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(); } @@ -2758,27 +3028,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; @@ -2793,6 +3063,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 91% 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 0fa71fb6d992..9a15c17cd06a 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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
@@ -99,11 +142,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
@@ -111,11 +157,14 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * int32 page_size = 6; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The token specifying the current offset within search results.
    * See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -123,10 +172,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 [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how
@@ -134,12 +186,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
@@ -154,10 +208,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
@@ -172,12 +229,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
@@ -206,9 +265,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
@@ -239,6 +299,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
@@ -269,6 +331,8 @@ public interface SearchDocumentsRequestOrBuilder extends
    */
   int getHistogramQueriesCount();
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -297,9 +361,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
@@ -332,6 +398,8 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
       int index);
 
   /**
+   *
+   *
    * 
    * Optional. 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].
@@ -342,11 +410,14 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
    * 
* * bool require_total_size = 10; + * * @return The requireTotalSize. */ boolean getRequireTotalSize(); /** + * + * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -355,6 +426,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 53f8c64d1662..f07192c595fb 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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_ = ""; @@ -27,54 +45,64 @@ private SearchDocumentsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchDocumentsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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].
      * This document only contains indexed metadata information.
      * 
* * .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].
      * This document only contains indexed metadata information.
      * 
* * .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].
      * This document only contains indexed metadata information.
@@ -85,6 +113,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
@@ -97,10 +127,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
@@ -113,32 +146,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.
@@ -149,59 +190,67 @@ public interface MatchingDocumentOrBuilder extends
     com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Document entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
    * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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].
      * This document only contains indexed metadata information.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ @java.lang.Override @@ -209,19 +258,26 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
      * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * This document only contains indexed metadata information.
      * 
* * .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].
      * This document only contains indexed metadata information.
@@ -237,6 +293,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
     public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 2;
     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
@@ -249,6 +307,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * string search_text_snippet = 2; + * * @return The searchTextSnippet. */ @java.lang.Override @@ -257,14 +316,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
@@ -277,16 +337,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 { @@ -297,12 +356,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 @@ -310,19 +372,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.
@@ -336,6 +405,7 @@ public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuild
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -347,8 +417,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());
       }
@@ -368,15 +437,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;
@@ -386,24 +453,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;
@@ -431,88 +498,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
@@ -522,39 +602,44 @@ 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(); @@ -576,19 +661,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); } @@ -596,8 +684,10 @@ 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); + 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 (documentBuilder_ == null) { result.document_ = document_; } else { @@ -617,46 +707,56 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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()); } @@ -693,31 +793,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - searchTextSnippet_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getQaResultFieldBuilder().getBuilder(), - extensionRegistry); - - 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); + + break; + } // case 10 + case 18: + { + searchTextSnippet_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getQaResultFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -730,36 +830,49 @@ public Builder mergeFrom( 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].
        * This document only contains indexed metadata information.
        * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ public boolean hasDocument() { return documentBuilder_ != null || document_ != null; } /** + * + * *
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
        * 
* * .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].
        * This document only contains indexed metadata information.
@@ -781,6 +894,8 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -800,6 +915,8 @@ public Builder setDocument(
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -811,7 +928,9 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value
         if (documentBuilder_ == null) {
           if (document_ != null) {
             document_ =
-              com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial();
+                com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             document_ = value;
           }
@@ -823,6 +942,8 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -842,6 +963,8 @@ public Builder clearDocument() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -850,11 +973,13 @@ public Builder clearDocument() {
        * .google.cloud.contentwarehouse.v1.Document document = 1;
        */
       public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() {
-        
+
         onChanged();
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
        * This document only contains indexed metadata information.
@@ -866,11 +991,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].
        * This document only contains indexed metadata information.
@@ -879,14 +1007,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_;
@@ -894,6 +1025,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
@@ -906,13 +1039,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; @@ -921,6 +1054,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
@@ -933,15 +1068,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 { @@ -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
@@ -961,20 +1097,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) { + public Builder setSearchTextSnippet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + searchTextSnippet_ = value; 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
@@ -987,15 +1125,18 @@ public Builder setSearchTextSnippet(
        * 
* * string search_text_snippet = 2; + * * @return This builder for chaining. */ public Builder clearSearchTextSnippet() { - + searchTextSnippet_ = getDefaultInstance().getSearchTextSnippet(); 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
@@ -1008,16 +1149,16 @@ 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) { + public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchTextSnippet_ = value; onChanged(); return this; @@ -1025,36 +1166,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 qaResultBuilder_ != null || qaResult_ != null; } /** + * + * *
        * 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.
@@ -1076,6 +1230,8 @@ public Builder setQaResult(com.google.cloud.contentwarehouse.v1.QAResult value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1095,6 +1251,8 @@ public Builder setQaResult(
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1106,7 +1264,9 @@ public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value
         if (qaResultBuilder_ == null) {
           if (qaResult_ != null) {
             qaResult_ =
-              com.google.cloud.contentwarehouse.v1.QAResult.newBuilder(qaResult_).mergeFrom(value).buildPartial();
+                com.google.cloud.contentwarehouse.v1.QAResult.newBuilder(qaResult_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             qaResult_ = value;
           }
@@ -1118,6 +1278,8 @@ public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1137,6 +1299,8 @@ public Builder clearQaResult() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1145,11 +1309,13 @@ public Builder clearQaResult() {
        * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
        */
       public com.google.cloud.contentwarehouse.v1.QAResult.Builder getQaResultBuilder() {
-        
+
         onChanged();
         return getQaResultFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1161,11 +1327,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.
@@ -1174,18 +1343,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) {
@@ -1198,41 +1371,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;
@@ -1244,81 +1422,112 @@ 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;
-  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; 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 @@ -1327,30 +1536,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 { @@ -1361,6 +1570,8 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** + * + * *
    * The total number of matched documents which is available only if the client
    * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -1371,6 +1582,7 @@ public java.lang.String getNextPageToken() {
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1381,12 +1593,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 @@ -1394,19 +1609,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.
@@ -1420,71 +1642,96 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 6;
-  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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1496,8 +1743,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)); } @@ -1523,23 +1769,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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1549,26 +1794,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.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 (!getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1602,129 +1843,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(); @@ -1756,13 +2004,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(); } @@ -1777,7 +2026,8 @@ 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); int from_bitField0_ = bitField0_; if (matchingDocumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1812,38 +2062,39 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse 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.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; @@ -1851,7 +2102,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()) { @@ -1870,9 +2123,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_); } @@ -1906,9 +2160,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes histogramQueryResultsBuilder_ = null; histogramQueryResults_ = other.histogramQueryResults_; bitField0_ = (bitField0_ & ~0x00000002); - histogramQueryResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHistogramQueryResultsFieldBuilder() : null; + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; } else { histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); } @@ -1940,55 +2195,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(); + 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(); - break; - } // case 18 - case 24: { - totalSize_ = input.readInt32(); + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); - break; - } // case 24 - case 34: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 24 + case 34: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - 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 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1998,28 +2258,43 @@ 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 { @@ -2027,11 +2302,15 @@ 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) { @@ -2041,13 +2320,18 @@ 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 { @@ -2055,14 +2339,19 @@ 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(); @@ -2076,14 +2365,20 @@ 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()); @@ -2094,13 +2389,18 @@ 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(); @@ -2114,14 +2414,19 @@ 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(); @@ -2135,14 +2440,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 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()); @@ -2153,14 +2463,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( - 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()); @@ -2171,18 +2487,24 @@ 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); @@ -2190,11 +2512,15 @@ 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) { @@ -2207,11 +2533,15 @@ 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) { @@ -2224,39 +2554,55 @@ 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 { @@ -2264,45 +2610,72 @@ 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(), @@ -2314,19 +2687,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; @@ -2335,21 +2710,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 { @@ -2357,64 +2733,73 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of matched documents which is available only if the client
      * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -2425,6 +2810,7 @@ public Builder setNextPageTokenBytes(
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -2432,6 +2818,8 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of matched documents which is available only if the client
      * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -2442,16 +2830,19 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of matched documents which is available only if the client
      * set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -2462,10 +2853,11 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; @@ -2473,36 +2865,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 metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * 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.
@@ -2524,6 +2929,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2543,6 +2950,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2554,7 +2963,9 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           metadata_ = value;
         }
@@ -2566,6 +2977,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2585,6 +2998,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2593,11 +3008,13 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2609,11 +3026,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.
@@ -2622,40 +3042,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_ & 0x00000002) != 0)) {
-        histogramQueryResults_ = new java.util.ArrayList(histogramQueryResults_);
+        histogramQueryResults_ =
+            new java.util.ArrayList(
+                histogramQueryResults_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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 { @@ -2663,12 +3097,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) { @@ -2678,14 +3116,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 { @@ -2693,12 +3136,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) { @@ -2715,15 +3162,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()); @@ -2734,14 +3186,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(); @@ -2755,12 +3212,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) { @@ -2777,12 +3238,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) { @@ -2796,15 +3261,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()); @@ -2815,19 +3285,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); @@ -2835,12 +3309,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) { @@ -2853,12 +3331,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) { @@ -2871,42 +3353,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 { @@ -2914,48 +3410,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_ & 0x00000002) != 0), getParentForChildren(), @@ -2964,9 +3482,9 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder addHist } return histogramQueryResultsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2976,12 +3494,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(); } @@ -2990,27 +3509,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; @@ -3025,6 +3544,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 66% 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 61f63a4a0177..f884d7579ab9 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,79 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true`. Otherwise, the
@@ -84,31 +131,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.
@@ -119,51 +175,71 @@ 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); } 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 74% 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 0c16a845ff01..bc344f19babc 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object resource_; /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -59,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ @java.lang.Override @@ -67,14 +89,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 +106,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 +125,15 @@ 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.
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -116,12 +141,15 @@ 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.
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -129,6 +157,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.
@@ -144,12 +174,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 @@ -157,19 +190,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.
@@ -178,19 +218,23 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 4;
   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 @@ -199,6 +243,7 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +255,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_); } @@ -237,16 +281,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; @@ -256,27 +297,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -299,137 +337,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(); @@ -453,9 +496,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 @@ -474,7 +517,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); + com.google.cloud.contentwarehouse.v1.SetAclRequest result = + new com.google.cloud.contentwarehouse.v1.SetAclRequest(this); result.resource_ = resource_; if (policyBuilder_ == null) { result.policy_ = policy_; @@ -495,38 +539,39 @@ public com.google.cloud.contentwarehouse.v1.SetAclRequest 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.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; @@ -534,7 +579,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_; onChanged(); @@ -574,36 +620,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); + case 10: + { + resource_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 32: { - projectOwner_ = input.readBool(); + break; + } // case 26 + case 32: + { + projectOwner_ = input.readBool(); - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -616,6 +663,8 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -624,13 +673,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; @@ -639,6 +688,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -647,15 +698,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 { @@ -663,6 +713,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -671,20 +723,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) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -693,15 +747,18 @@ public Builder setResource(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -710,16 +767,16 @@ 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) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -727,26 +784,35 @@ 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.
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || 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.
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -757,6 +823,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.
@@ -778,6 +846,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.
@@ -785,8 +855,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();
         onChanged();
@@ -797,6 +866,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.
@@ -807,8 +878,7 @@ public Builder setPolicy(
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
         if (policy_ != null) {
-          policy_ =
-            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
         } else {
           policy_ = value;
         }
@@ -820,6 +890,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.
@@ -839,6 +911,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.
@@ -847,11 +921,13 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-      
+
       onChanged();
       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.
@@ -863,11 +939,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.
@@ -876,14 +953,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_;
@@ -891,36 +970,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -942,6 +1034,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.
@@ -961,6 +1055,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -968,11 +1064,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -984,6 +1083,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.
@@ -1003,6 +1104,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1010,12 +1113,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1023,15 +1129,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.
@@ -1040,27 +1150,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 @@ -1068,39 +1184,45 @@ 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. */ public Builder setProjectOwner(boolean value) { - + projectOwner_ = value; onChanged(); 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() { - + projectOwner_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1110,12 +1232,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(); } @@ -1124,27 +1246,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; @@ -1159,6 +1281,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 80% 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 1d75890aa00a..cad2f0e111a4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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:
@@ -16,10 +34,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:
@@ -28,32 +49,40 @@ 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.
    * 
* * .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.
    * 
* * .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.
@@ -64,26 +93,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.
@@ -94,12 +131,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 71% 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 9026114e0a5b..19462f2a5220 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,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -62,11 +83,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 @@ -74,6 +98,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).
    * 
@@ -88,12 +114,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 @@ -101,19 +130,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.
@@ -127,6 +163,7 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -138,8 +175,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());
     }
@@ -156,12 +192,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;
@@ -171,22 +205,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;
@@ -213,129 +246,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(); @@ -355,9 +394,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 @@ -376,7 +415,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); + com.google.cloud.contentwarehouse.v1.SetAclResponse result = + new com.google.cloud.contentwarehouse.v1.SetAclResponse(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -395,38 +435,39 @@ public com.google.cloud.contentwarehouse.v1.SetAclResponse 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.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; @@ -434,7 +475,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()); } @@ -467,26 +509,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - 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); + + break; + } // case 10 + case 18: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + + 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 +540,33 @@ public Builder mergeFrom( 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 policyBuilder_ != null || policy_ != null; } /** + * + * *
      * 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() { @@ -527,6 +577,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -547,14 +599,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(); onChanged(); @@ -565,6 +618,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -574,8 +629,7 @@ public Builder setPolicy( public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { - policy_ = - com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -587,6 +641,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -605,6 +661,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -612,11 +670,13 @@ public Builder clearPolicy() { * .google.iam.v1.Policy policy = 1; */ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -627,11 +687,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).
      * 
@@ -639,14 +700,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_; @@ -654,36 +717,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 metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * 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.
@@ -705,6 +781,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -724,6 +802,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -735,7 +815,9 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           metadata_ = value;
         }
@@ -747,6 +829,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -766,6 +850,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -774,11 +860,13 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -790,11 +878,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.
@@ -803,21 +894,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);
     }
 
@@ -827,12 +921,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();
   }
@@ -841,27 +935,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;
@@ -876,6 +970,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..006a21ae5bc6 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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 ded3a7b624ba..3ba978595ac8 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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,75 +50,89 @@ private SynonymSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SynonymSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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.
@@ -108,75 +140,85 @@ 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.EMPTY;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Synonym();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    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;
     private com.google.protobuf.LazyStringList words_;
     /**
+     *
+     *
      * 
      * 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. */ @@ -184,20 +226,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; @@ -209,8 +254,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)); } @@ -239,15 +283,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; } @@ -269,87 +313,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 @@ -359,6 +410,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represents a list of words given by the customer
      * All these words are synonyms of each other.
@@ -366,33 +419,33 @@ 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();
@@ -402,9 +455,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_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
@@ -423,7 +476,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);
+        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym result =
+            new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           words_ = words_.getUnmodifiableView();
@@ -438,38 +492,41 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym 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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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;
@@ -477,7 +534,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_;
@@ -514,18 +572,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) {
@@ -535,44 +595,55 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList words_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringList words_ =
+          com.google.protobuf.LazyStringArrayList.EMPTY;
+
       private void ensureWordsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           words_ = new com.google.protobuf.LazyStringArrayList(words_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
       /**
+       *
+       *
        * 
        * 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_.getUnmodifiableView(); } /** + * + * *
        * 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. */ @@ -580,80 +651,90 @@ 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) { + public Builder setWords(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWordsIsMutable(); + throw new NullPointerException(); + } + ensureWordsIsMutable(); words_.set(index, value); onChanged(); 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) { + public Builder addWords(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWordsIsMutable(); + throw new NullPointerException(); + } + ensureWordsIsMutable(); words_.add(value); onChanged(); 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_); onChanged(); return this; } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @return This builder for chaining. */ public Builder clearWords() { @@ -663,25 +744,28 @@ public Builder clearWords() { 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) { + public Builder addWordsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWordsIsMutable(); words_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -694,12 +778,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 +792,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,12 +828,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; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -757,6 +843,7 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefaultInstanc
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -765,14 +852,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.
@@ -781,16 +869,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 { @@ -801,6 +888,8 @@ public java.lang.String getName() { public static final int CONTEXT_FIELD_NUMBER = 2; private volatile java.lang.Object context_; /** + * + * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -808,6 +897,7 @@ public java.lang.String getName() {
    * 
* * string context = 2; + * * @return The context. */ @java.lang.Override @@ -816,14 +906,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.
@@ -831,16 +922,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,6 +941,8 @@ public java.lang.String getContext() { public static final int SYNONYMS_FIELD_NUMBER = 3; private java.util.List synonyms_; /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -862,6 +954,8 @@ public java.util.List g return synonyms_; } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -869,11 +963,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.
    * 
@@ -885,6 +981,8 @@ public int getSynonymsCount() { return synonyms_.size(); } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -896,6 +994,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i return synonyms_.get(index); } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -909,6 +1009,7 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -920,8 +1021,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_); } @@ -947,8 +1047,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; @@ -958,19 +1057,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; } @@ -995,97 +1092,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:
@@ -1097,33 +1201,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();
@@ -1142,9 +1245,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
@@ -1163,7 +1266,8 @@ 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);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.context_ = context_;
@@ -1184,38 +1288,39 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet 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.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;
@@ -1223,7 +1328,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_;
         onChanged();
@@ -1250,9 +1356,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet other)
             synonymsBuilder_ = null;
             synonyms_ = other.synonyms_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            synonymsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSynonymsFieldBuilder() : null;
+            synonymsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSynonymsFieldBuilder()
+                    : null;
           } else {
             synonymsBuilder_.addAllMessages(other.synonyms_);
           }
@@ -1284,35 +1391,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              context_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                context_ = input.readStringRequireUtf8();
 
-              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:
+                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) {
@@ -1322,10 +1433,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.
@@ -1334,13 +1448,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; @@ -1349,6 +1463,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1357,15 +1473,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 { @@ -1373,6 +1488,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1381,20 +1498,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1403,15 +1522,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1420,16 +1542,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1437,6 +1559,8 @@ public Builder setNameBytes( private java.lang.Object context_ = ""; /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1444,13 +1568,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; @@ -1459,6 +1583,8 @@ public java.lang.String getContext() { } } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1466,15 +1592,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 { @@ -1482,6 +1607,8 @@ public java.lang.String getContext() { } } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1489,20 +1616,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) { + public Builder setContext(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + context_ = value; onChanged(); return this; } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1510,15 +1639,18 @@ public Builder setContext(
      * 
* * string context = 2; + * * @return This builder for chaining. */ public Builder clearContext() { - + context_ = getDefaultInstance().getContext(); onChanged(); return this; } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1526,41 +1658,50 @@ 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) { + public Builder setContextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + context_ = value; onChanged(); return this; } private java.util.List synonyms_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - synonyms_ = new java.util.ArrayList(synonyms_); + synonyms_ = + new java.util.ArrayList( + synonyms_); bitField0_ |= 0x00000001; - } + } } 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 { @@ -1568,6 +1709,8 @@ public java.util.List g } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1582,6 +1725,8 @@ public int getSynonymsCount() { } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1596,6 +1741,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1617,6 +1764,8 @@ public Builder setSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1624,7 +1773,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()); @@ -1635,6 +1785,8 @@ public Builder setSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1655,6 +1807,8 @@ public Builder addSynonyms(com.google.cloud.contentwarehouse.v1.SynonymSet.Synon return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1676,6 +1830,8 @@ public Builder addSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1694,6 +1850,8 @@ public Builder addSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1701,7 +1859,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()); @@ -1712,6 +1871,8 @@ public Builder addSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1719,11 +1880,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); @@ -1731,6 +1892,8 @@ public Builder addAllSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1748,6 +1911,8 @@ public Builder clearSynonyms() { return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1765,6 +1930,8 @@ public Builder removeSynonyms(int index) { return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1776,6 +1943,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder getSynony return getSynonymsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1785,19 +1954,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 { @@ -1805,6 +1978,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1812,10 +1987,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.
      * 
@@ -1824,37 +2001,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1864,12 +2047,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(); } @@ -1878,27 +2061,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; @@ -1913,6 +2096,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..031e4e3891c6 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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..21fee36b85f7 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\213\001\n$com.google.cloud.contentwar" + + "ehouse.v1B\017SynonymSetProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/conten" + + "twarehouse/v1;contentwarehouseb\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..b859b78665c6 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\202\323\344\223\002>\"//v1/{parent=projects/*/loca" + + "tions/*}/synonymSets:\013synonym_set\332A\022pare" + + "nt,synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" + + "e.cloud.contentwarehouse.v1.GetSynonymSe" + + "tRequest\032,.google.cloud.contentwarehouse" + + ".v1.SynonymSet\">\202\323\344\223\0021\022//v1/{name=projec" + + "ts/*/locations/*/synonymSets/*}\332A\004name\022\324" + + "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" + + "ntwarehouse.v1.UpdateSynonymSetRequest\032," + + ".google.cloud.contentwarehouse.v1.Synony" + + "mSet\"W\202\323\344\223\002>2//v1/{name=projects/*/locat" + + "ions/*/synonymSets/*}:\013synonym_set\332A\020nam" + + "e,synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" + + "gle.cloud.contentwarehouse.v1.DeleteSyno" + + "nymSetRequest\032\026.google.protobuf.Empty\">\202" + + "\323\344\223\0021*//v1/{name=projects/*/locations/*/" + + "synonymSets/*}\332A\004name\022\310\001\n\017ListSynonymSet" + + "s\0228.google.cloud.contentwarehouse.v1.Lis" + + "tSynonymSetsRequest\0329.google.cloud.conte" + + "ntwarehouse.v1.ListSynonymSetsResponse\"@" + + "\202\323\344\223\0021\022//v1/{parent=projects/*/locations" + + "/*}/synonymSets\332A\006parent\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\222\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\026SynonymS" + + "etServiceProtoP\001ZPgoogle.golang.org/genp" + + "roto/googleapis/cloud/contentwarehouse/v" + + "1;contentwarehouseb\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..dc632734caf2 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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\"\243\001\n\027CreateSynonymSetRequest" + + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehou" + + "se.googleapis.com/Location\022F\n\013synonym_se" + + "t\030\002 \001(\0132,.google.cloud.contentwarehouse." + + "v1.SynonymSetB\003\340A\002\"X\n\024GetSynonymSetReque" + + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*contentwarehou" + + "se.googleapis.com/SynonymSet\"\201\001\n\026ListSyn" + + "onymSetsRequest\022@\n\006parent\030\001 \001(\tB0\340A\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" + + "\"v\n\027ListSynonymSetsResponse\022B\n\014synonym_s" + + "ets\030\001 \003(\0132,.google.cloud.contentwarehous" + + "e.v1.SynonymSet\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\243\001\n\027UpdateSynonymSetRequest\022@\n\004name\030\001 \001" + + "(\tB2\340A\002\372A,\n*contentwarehouse.googleapis." + + "com/SynonymSet\022F\n\013synonym_set\030\002 \001(\0132,.go" + + "ogle.cloud.contentwarehouse.v1.SynonymSe" + + "tB\003\340A\002\"[\n\027DeleteSynonymSetRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\340A\002\372A,\n*contentwarehouse.google" + + "apis.com/SynonymSetB\231\001\n$com.google.cloud" + + ".contentwarehouse.v1B\035SynonymSetServiceR" + + "equestProtoP\001ZPgoogle.golang.org/genprot" + + "o/googleapis/cloud/contentwarehouse/v1;c" + + "ontentwarehouseb\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 694e05a39674..8d33460da16b 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,84 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextArray(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private com.google.protobuf.LazyStringList values_; /** + * + * *
    * 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. */ @@ -86,20 +113,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; @@ -111,8 +141,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)); } @@ -141,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.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; } @@ -170,130 +199,136 @@ 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(); @@ -303,9 +338,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_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 @@ -324,7 +359,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); + com.google.cloud.contentwarehouse.v1.TextArray result = + new com.google.cloud.contentwarehouse.v1.TextArray(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -339,38 +375,39 @@ public com.google.cloud.contentwarehouse.v1.TextArray 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.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; @@ -415,18 +452,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) { @@ -436,44 +475,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); 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() { return values_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -481,80 +531,90 @@ 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) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); 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) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); 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_); onChanged(); return this; } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -564,28 +624,30 @@ public Builder clearValues() { 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) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,12 +657,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(); } @@ -609,27 +671,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; @@ -644,6 +706,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..fff476994f29 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 63% 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 a7738349b8c5..ce2a0b914568 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,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +257,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 @@ -253,7 +278,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; } @@ -262,38 +288,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; @@ -301,7 +328,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; @@ -328,12 +356,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) { @@ -343,9 +372,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); } @@ -355,12 +384,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(); } @@ -369,27 +398,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; @@ -404,6 +433,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..6f629a72fce1 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 66% 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 93053624c51f..034b47d25e05 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,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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.
      * 
@@ -66,6 +88,8 @@ public enum TimeField */ TIME_FIELD_UNSPECIFIED(0), /** + * + * *
      * Earliest document create time.
      * 
@@ -74,6 +98,8 @@ public enum TimeField */ CREATE_TIME(1), /** + * + * *
      * Latest document update time.
      * 
@@ -85,6 +111,8 @@ public enum TimeField ; /** + * + * *
      * Default value.
      * 
@@ -93,6 +121,8 @@ public enum TimeField */ public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Earliest document create time.
      * 
@@ -101,6 +131,8 @@ public enum TimeField */ public static final int CREATE_TIME_VALUE = 1; /** + * + * *
      * Latest document update time.
      * 
@@ -109,7 +141,6 @@ public enum TimeField */ public static final int UPDATE_TIME_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -134,49 +165,49 @@ 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; - default: return null; + case 0: + return TIME_FIELD_UNSPECIFIED; + case 1: + return CREATE_TIME; + case 2: + return UPDATE_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; @@ -197,6 +228,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 @@ -205,15 +237,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 getTimeRange(); @@ -222,33 +253,45 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { public static final int TIME_FIELD_FIELD_NUMBER = 2; private int timeField_; /** + * + * *
    * Specifies which time field to filter documents on.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .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.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The timeField. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.valueOf(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.valueOf(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; @@ -260,12 +303,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); @@ -278,12 +322,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; @@ -293,17 +337,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; @@ -328,130 +372,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(); @@ -467,9 +517,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 @@ -488,7 +538,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); + com.google.cloud.contentwarehouse.v1.TimeFilter result = + new com.google.cloud.contentwarehouse.v1.TimeFilter(this); if (timeRangeBuilder_ == null) { result.timeRange_ = timeRange_; } else { @@ -503,38 +554,39 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter 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.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; @@ -542,7 +594,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()); } @@ -575,24 +628,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeRangeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - timeField_ = input.readEnum(); - - 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); + + break; + } // case 10 + case 16: + { + timeField_ = input.readEnum(); + + 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) { @@ -605,9 +659,13 @@ public Builder mergeFrom( 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() { @@ -615,6 +673,7 @@ public boolean hasTimeRange() { } /** * .google.type.Interval time_range = 1; + * * @return The timeRange. */ public com.google.type.Interval getTimeRange() { @@ -624,9 +683,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) { @@ -640,11 +697,8 @@ public Builder setTimeRange(com.google.type.Interval value) { 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(); onChanged(); @@ -654,14 +708,12 @@ public Builder setTimeRange( 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 (timeRange_ != null) { timeRange_ = - com.google.type.Interval.newBuilder(timeRange_).mergeFrom(value).buildPartial(); + com.google.type.Interval.newBuilder(timeRange_).mergeFrom(value).buildPartial(); } else { timeRange_ = value; } @@ -672,9 +724,7 @@ public Builder mergeTimeRange(com.google.type.Interval value) { return this; } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public Builder clearTimeRange() { if (timeRangeBuilder_ == null) { timeRange_ = null; @@ -686,37 +736,33 @@ public Builder clearTimeRange() { return this; } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public com.google.type.Interval.Builder getTimeRangeBuilder() { - + 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_; @@ -724,55 +770,71 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { private int timeField_ = 0; /** + * + * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .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.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .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. */ public Builder setTimeFieldValue(int value) { - + timeField_ = value; onChanged(); return this; } /** + * + * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The timeField. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.valueOf(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.valueOf(timeField_); + return result == null + ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED + : result; } /** + * + * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @param value The timeField to set. * @return This builder for chaining. */ @@ -780,29 +842,32 @@ public Builder setTimeField(com.google.cloud.contentwarehouse.v1.TimeFilter.Time if (value == null) { throw new NullPointerException(); } - + timeField_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Specifies which time field to filter documents on.
      * Defaults to [TimeField.UPLOAD_TIME][].
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return This builder for chaining. */ public Builder clearTimeField() { - + timeField_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +877,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(); } @@ -826,27 +891,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; @@ -861,6 +926,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 9dab6acc52b8..c3881c68c79e 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,44 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .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.
    * Defaults to [TimeField.UPLOAD_TIME][].
    * 
* * .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 d22302a6596c..136676739a8e 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private java.util.List values_; /** + * + * *
    * List of timestamp values.
    * 
@@ -62,6 +83,8 @@ public java.util.List getVa return values_; } /** + * + * *
    * List of timestamp values.
    * 
@@ -69,11 +92,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.
    * 
@@ -85,6 +110,8 @@ public int getValuesCount() { return values_.size(); } /** + * + * *
    * List of timestamp values.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index) return values_.get(index); } /** + * + * *
    * List of timestamp values.
    * 
@@ -109,6 +138,7 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,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)); } @@ -135,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; @@ -146,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.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; } @@ -176,129 +204,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(); @@ -313,9 +347,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 @@ -334,7 +368,8 @@ 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); int from_bitField0_ = bitField0_; if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +388,39 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray 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.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; @@ -392,7 +428,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()) { @@ -411,9 +448,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_); } @@ -445,25 +483,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) { @@ -473,21 +513,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.
      * 
@@ -502,6 +550,8 @@ public java.util.List getVa } } /** + * + * *
      * List of timestamp values.
      * 
@@ -516,6 +566,8 @@ public int getValuesCount() { } } /** + * + * *
      * List of timestamp values.
      * 
@@ -530,14 +582,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(); @@ -551,6 +604,8 @@ public Builder setValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -569,6 +624,8 @@ public Builder setValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -589,14 +646,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(); @@ -610,6 +668,8 @@ public Builder addValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -628,6 +688,8 @@ public Builder addValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -646,6 +708,8 @@ public Builder addValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -656,8 +720,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); @@ -665,6 +728,8 @@ public Builder addAllValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -682,6 +747,8 @@ public Builder clearValues() { return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -699,17 +766,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.
      * 
@@ -719,19 +789,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 { @@ -739,6 +812,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } } /** + * + * *
      * List of timestamp values.
      * 
@@ -746,49 +821,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); } @@ -798,12 +880,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(); } @@ -812,27 +894,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; @@ -847,6 +929,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..6c7ac70b7307 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 c3a9827c0952..66ee342d685f 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,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +258,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 @@ -253,7 +279,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; } @@ -262,38 +289,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; @@ -301,7 +329,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; @@ -328,12 +357,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) { @@ -343,9 +373,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); } @@ -355,12 +385,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(); } @@ -369,27 +399,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; @@ -404,6 +434,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..52332ab5285b --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 8d36124832dc..3c8f2c38f4eb 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,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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; } @@ -71,30 +92,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 @@ -102,21 +129,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
    * 
@@ -126,13 +158,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.
@@ -140,12 +174,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.
@@ -153,6 +190,7 @@ public boolean hasTextValue() {
    * 
* * string text_value = 2; + * * @return The textValue. */ public java.lang.String getTextValue() { @@ -163,8 +201,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; @@ -173,6 +210,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.
@@ -180,18 +219,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; } @@ -202,6 +240,7 @@ public java.lang.String getTextValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) value_); } @@ -231,8 +269,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_); @@ -245,22 +284,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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: @@ -294,129 +332,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(); @@ -429,9 +473,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 @@ -450,7 +494,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); + com.google.cloud.contentwarehouse.v1.TimestampValue result = + new com.google.cloud.contentwarehouse.v1.TimestampValue(this); if (valueCase_ == 1) { if (timestampValueBuilder_ == null) { result.value_ = value_; @@ -470,38 +515,39 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue 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.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; @@ -509,21 +555,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(); @@ -551,25 +601,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) { @@ -579,12 +630,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() { @@ -594,15 +645,20 @@ public Builder clearValue() { return this; } - 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 @@ -610,11 +666,14 @@ public boolean hasTimestampValue() { return valueCase_ == 1; } /** + * + * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return The timestampValue. */ @java.lang.Override @@ -632,6 +691,8 @@ public com.google.protobuf.Timestamp getTimestampValue() { } } /** + * + * *
      * Timestamp value
      * 
@@ -652,14 +713,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(); @@ -670,6 +732,8 @@ public Builder setTimestampValue( return this; } /** + * + * *
      * Timestamp value
      * 
@@ -678,10 +742,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; } @@ -697,6 +762,8 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp value
      * 
@@ -720,6 +787,8 @@ public Builder clearTimestampValue() { return this; } /** + * + * *
      * Timestamp value
      * 
@@ -730,6 +799,8 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { return getTimestampValueFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp value
      * 
@@ -748,6 +819,8 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { } } /** + * + * *
      * Timestamp value
      * 
@@ -755,25 +828,31 @@ 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; - onChanged();; + onChanged(); + ; return timestampValueBuilder_; } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -781,6 +860,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
      * 
* * string text_value = 2; + * * @return Whether the textValue field is set. */ @java.lang.Override @@ -788,6 +868,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.
@@ -795,6 +877,7 @@ public boolean hasTextValue() {
      * 
* * string text_value = 2; + * * @return The textValue. */ @java.lang.Override @@ -804,8 +887,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; @@ -816,6 +898,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.
@@ -823,19 +907,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; } @@ -845,6 +928,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.
@@ -852,20 +937,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) { + public Builder setTextValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 2; + 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.
@@ -873,6 +960,7 @@ public Builder setTextValue(
      * 
* * string text_value = 2; + * * @return This builder for chaining. */ public Builder clearTextValue() { @@ -884,6 +972,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.
@@ -891,23 +981,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) { + public Builder setTextValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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 +1007,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 +1021,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 +1056,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 291e09929465..71c6a244b632 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); public 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 d0cb6630a22f..95e409432972 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,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; @@ -59,8 +78,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); } @@ -78,12 +96,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; @@ -102,129 +121,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(); @@ -232,9 +258,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 @@ -253,7 +279,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; } @@ -262,38 +289,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; @@ -301,7 +329,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; @@ -328,12 +357,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) { @@ -343,9 +373,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); } @@ -355,12 +385,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(); } @@ -369,27 +399,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; @@ -404,6 +434,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..33462cba9528 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 68% 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 3ef191d57e23..cf9de4004668 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,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the document to update.
    * Format:
@@ -59,7 +80,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 @@ -68,14 +92,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:
@@ -84,17 +109,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 { @@ -105,11 +131,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 @@ -117,23 +148,34 @@ 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() { @@ -143,12 +185,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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 @@ -156,19 +201,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.
@@ -177,18 +229,23 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
     return getRequestMetadata();
   }
 
   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 CW Document.
    * 
* - * .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 @@ -196,37 +253,50 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** + * + * *
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder() { return getCloudAiDocumentOption(); } 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 @@ -234,18 +304,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.
    * 
@@ -258,6 +335,7 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOpti } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +347,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_); } @@ -299,20 +376,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; @@ -322,34 +396,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; @@ -386,129 +456,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(); @@ -542,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_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 @@ -563,7 +640,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); + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(this); result.name_ = name_; if (documentBuilder_ == null) { result.document_ = document_; @@ -593,38 +671,39 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest 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.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; @@ -632,7 +711,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_; onChanged(); @@ -675,45 +755,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 42: { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getUpdateOptionsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 42: + { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateOptionsFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -726,6 +805,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -734,14 +815,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; @@ -750,6 +833,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -758,16 +843,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 { @@ -775,6 +861,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -783,21 +871,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -806,16 +898,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -824,17 +921,19 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -842,39 +941,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 documentBuilder_ != null || 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. */ 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) { @@ -890,11 +1008,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) { @@ -908,17 +1030,23 @@ 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 (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) + .mergeFrom(value) + .buildPartial(); } else { document_ = value; } @@ -930,11 +1058,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() { if (documentBuilder_ == null) { @@ -948,48 +1080,64 @@ 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() { - + onChanged(); 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_; @@ -997,36 +1145,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 requestMetadataBuilder_ != null || 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. */ 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.
@@ -1048,6 +1209,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.
@@ -1067,6 +1230,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1074,11 +1239,14 @@ 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 (requestMetadata_ != null) {
           requestMetadata_ =
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder(requestMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestMetadata_ = value;
         }
@@ -1090,6 +1258,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.
@@ -1109,6 +1279,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1116,12 +1288,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() {
+
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1129,15 +1304,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.
@@ -1146,14 +1325,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_;
@@ -1161,41 +1343,58 @@ 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 CW Document.
      * 
* - * .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 cloudAiDocumentOptionBuilder_ != null || cloudAiDocumentOption_ != null; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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(); @@ -1209,11 +1408,14 @@ public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.Clo return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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) { @@ -1227,17 +1429,24 @@ public Builder setCloudAiDocumentOption( return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 (cloudAiDocumentOption_ != null) { cloudAiDocumentOption_ = - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder(cloudAiDocumentOption_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder( + cloudAiDocumentOption_) + .mergeFrom(value) + .buildPartial(); } else { cloudAiDocumentOption_ = value; } @@ -1249,11 +1458,14 @@ public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.C return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ public Builder clearCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { @@ -1267,48 +1479,63 @@ public Builder clearCloudAiDocumentOption() { return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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() { + onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** + * + * *
      * Request Option for processing Cloud AI Document in CW Document.
      * 
* - * .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 CW Document.
      * 
* - * .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_; @@ -1316,34 +1543,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 updateOptionsBuilder_ != null || updateOptions_ != null; } /** + * + * *
      * 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.
      * 
@@ -1364,6 +1604,8 @@ public Builder setUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOptio return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1382,6 +1624,8 @@ public Builder setUpdateOptions( return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1392,7 +1636,9 @@ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOpt if (updateOptionsBuilder_ == null) { if (updateOptions_ != null) { updateOptions_ = - com.google.cloud.contentwarehouse.v1.UpdateOptions.newBuilder(updateOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.UpdateOptions.newBuilder(updateOptions_) + .mergeFrom(value) + .buildPartial(); } else { updateOptions_ = value; } @@ -1404,6 +1650,8 @@ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOpt return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1422,6 +1670,8 @@ public Builder clearUpdateOptions() { return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1429,11 +1679,13 @@ public Builder clearUpdateOptions() { * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; */ public com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder getUpdateOptionsBuilder() { - + onChanged(); return getUpdateOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Options for the update operation.
      * 
@@ -1444,11 +1696,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.
      * 
@@ -1456,21 +1711,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); } @@ -1480,12 +1738,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(); } @@ -1494,27 +1752,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; @@ -1529,6 +1787,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 70% 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 2e2ff49c6d8e..cf2b2c6240e3 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,51 +140,71 @@ public interface UpdateDocumentRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Request Option for processing Cloud AI Document in CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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 CW Document.
    * 
* - * .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 71% 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 788e4fc16461..0a6870f55d49 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,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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 @@ -62,18 +83,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.
    * 
@@ -88,6 +116,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild 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.
@@ -95,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 @@ -102,6 +133,8 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -109,13 +142,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.
@@ -125,19 +163,23 @@ 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() {
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
+      getRuleEngineOutputOrBuilder() {
     return getRuleEngineOutput();
   }
 
   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 @@ -145,19 +187,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.
@@ -171,6 +220,7 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
   }
 
   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 (document_ != null) {
       output.writeMessage(1, getDocument());
     }
@@ -203,16 +252,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;
@@ -222,27 +268,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;
@@ -273,129 +317,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(); @@ -421,9 +472,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 @@ -442,7 +493,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); + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse(this); if (documentBuilder_ == null) { result.document_ = document_; } else { @@ -466,38 +518,39 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.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; @@ -505,7 +558,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()); } @@ -541,33 +595,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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,34 +633,47 @@ public Builder mergeFrom( 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 documentBuilder_ != null || document_ != null; } /** + * + * *
      * 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.
      * 
@@ -628,6 +694,8 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -646,6 +714,8 @@ public Builder setDocument( return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -656,7 +726,9 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.Document.newBuilder(document_) + .mergeFrom(value) + .buildPartial(); } else { document_ = value; } @@ -668,6 +740,8 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -686,6 +760,8 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -693,11 +769,13 @@ public Builder clearDocument() { * .google.cloud.contentwarehouse.v1.Document document = 1; */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -708,11 +786,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.
      * 
@@ -720,14 +801,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_; @@ -735,8 +819,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.
@@ -744,12 +833,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 ruleEngineOutputBuilder_ != null || ruleEngineOutput_ != null; } /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -757,16 +849,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.
@@ -775,7 +872,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();
@@ -789,6 +887,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.
@@ -809,6 +909,8 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -817,11 +919,14 @@ 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 (ruleEngineOutput_ != null) {
           ruleEngineOutput_ =
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder(ruleEngineOutput_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           ruleEngineOutput_ = value;
         }
@@ -833,6 +938,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.
@@ -853,6 +960,8 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -861,12 +970,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() {
+
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -875,15 +987,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.
@@ -893,14 +1009,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_;
@@ -908,36 +1027,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 metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * 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.
@@ -959,6 +1091,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -978,6 +1112,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -989,7 +1125,9 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
           metadata_ =
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder(metadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1001,6 +1139,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1020,6 +1160,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1028,11 +1170,13 @@ public Builder clearMetadata() {
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1044,11 +1188,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.
@@ -1057,21 +1204,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);
     }
 
@@ -1081,12 +1231,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();
   }
@@ -1095,27 +1245,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;
@@ -1130,6 +1280,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 d0defb62e031..e119cfd0ceee 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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.
@@ -42,10 +68,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.
@@ -53,10 +82,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.
@@ -68,26 +100,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 61%
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 4d2028ba445c..3b891696bf38 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,63 +1,87 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -101,11 +127,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 @@ -113,23 +144,34 @@ 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() { @@ -137,6 +179,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -169,8 +211,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; @@ -180,19 +221,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; @@ -217,129 +257,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(); @@ -355,13 +402,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(); } @@ -376,7 +424,8 @@ 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); + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(this); result.name_ = name_; if (documentSchemaBuilder_ == null) { result.documentSchema_ = documentSchema_; @@ -391,46 +440,50 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); @@ -464,24 +517,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentSchemaFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); + + 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,20 +548,24 @@ public Builder mergeFrom( 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; @@ -516,22 +574,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 { @@ -539,60 +600,73 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -600,39 +674,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 documentSchemaBuilder_ != null || 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. */ 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) { @@ -648,11 +741,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) { @@ -666,17 +763,23 @@ 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 (documentSchema_ != null) { documentSchema_ = - com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder(documentSchema_) + .mergeFrom(value) + .buildPartial(); } else { documentSchema_ = value; } @@ -688,11 +791,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() { if (documentSchemaBuilder_ == null) { @@ -706,55 +813,72 @@ 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() { - + onChanged(); 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); } @@ -764,41 +888,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; @@ -810,9 +936,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..95ee8c105206 --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 70% 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 733d76aad98f..c7924732d690 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,83 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(updateType_); + com.google.cloud.contentwarehouse.v1.UpdateType result = + com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(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,
@@ -86,6 +116,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -93,6 +124,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -101,6 +134,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -108,6 +142,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,
@@ -125,11 +161,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 @@ -137,18 +176,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.
    * 
@@ -156,11 +202,13 @@ 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() { + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder + getMergeFieldsOptionsOrBuilder() { return getMergeFieldsOptions(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,9 +220,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) { @@ -192,17 +240,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; @@ -212,23 +258,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; @@ -257,129 +302,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(); @@ -401,9 +452,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 @@ -422,7 +473,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); + com.google.cloud.contentwarehouse.v1.UpdateOptions result = + new com.google.cloud.contentwarehouse.v1.UpdateOptions(this); result.updateType_ = updateType_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -442,38 +494,39 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions 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.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; @@ -481,7 +534,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()); } @@ -517,31 +571,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - updateType_ = input.readEnum(); + case 8: + { + updateType_ = input.readEnum(); - break; - } // case 8 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 8 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getMergeFieldsOptionsFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage( + getMergeFieldsOptionsFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -554,51 +609,65 @@ public Builder mergeFrom( 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. */ public Builder setUpdateTypeValue(int value) { - + updateType_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(updateType_); + com.google.cloud.contentwarehouse.v1.UpdateType result = + com.google.cloud.contentwarehouse.v1.UpdateType.valueOf(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. */ @@ -606,21 +675,24 @@ public Builder setUpdateType(com.google.cloud.contentwarehouse.v1.UpdateType val if (value == null) { throw new NullPointerException(); } - + updateType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return This builder for chaining. */ public Builder clearUpdateType() { - + updateType_ = 0; onChanged(); return this; @@ -628,8 +700,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,
@@ -638,12 +715,15 @@ public Builder clearUpdateType() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -652,16 +732,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,
@@ -685,6 +770,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -694,8 +781,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();
         onChanged();
@@ -706,6 +792,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -719,7 +807,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -731,6 +819,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -752,6 +842,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -762,11 +854,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -780,11 +874,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,
@@ -795,14 +892,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_;
@@ -810,41 +910,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 mergeFieldsOptionsBuilder_ != null || mergeFieldsOptions_ != null; } /** + * + * *
      * 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(); @@ -858,6 +972,8 @@ public Builder setMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.MergeF return this; } /** + * + * *
      * Options for merging.
      * 
@@ -876,17 +992,23 @@ 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 (mergeFieldsOptions_ != null) { mergeFieldsOptions_ = - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.newBuilder(mergeFieldsOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.newBuilder( + mergeFieldsOptions_) + .mergeFrom(value) + .buildPartial(); } else { mergeFieldsOptions_ = value; } @@ -898,6 +1020,8 @@ public Builder mergeMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.Merg return this; } /** + * + * *
      * Options for merging.
      * 
@@ -916,33 +1040,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() { + 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.
      * 
@@ -950,21 +1083,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); } @@ -974,12 +1110,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(); } @@ -988,27 +1124,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; @@ -1023,6 +1159,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..88d85a5bd7d1 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 62% 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 6b0f6cce74c9..f8687f833c0e 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,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; 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 @@ -66,31 +90,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 { @@ -101,11 +127,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 @@ -113,23 +144,34 @@ 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() { @@ -137,6 +179,7 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -169,8 +211,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; @@ -180,19 +221,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; @@ -217,129 +257,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(); @@ -355,9 +402,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 @@ -376,7 +423,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); + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(this); result.name_ = name_; if (ruleSetBuilder_ == null) { result.ruleSet_ = ruleSet_; @@ -391,38 +439,39 @@ public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest 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.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; @@ -430,7 +479,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_; onChanged(); @@ -464,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getRuleSetFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); + + 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,20 +545,24 @@ public Builder mergeFrom( 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; @@ -516,22 +571,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 { @@ -539,60 +597,73 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -600,39 +671,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 ruleSetBuilder_ != null || 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. */ 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) { @@ -648,11 +738,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) { @@ -666,17 +760,23 @@ 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 (ruleSet_ != null) { ruleSet_ = - com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder(ruleSet_) + .mergeFrom(value) + .buildPartial(); } else { ruleSet_ = value; } @@ -688,11 +788,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() { if (ruleSetBuilder_ == null) { @@ -706,55 +810,71 @@ 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() { - + onChanged(); 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); } @@ -764,12 +884,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(); } @@ -778,27 +898,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; @@ -813,6 +933,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..db3580b5d57b --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 b1fd3e305e81..a7b0cef63a89 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,54 +29,61 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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;
   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 @@ -68,31 +92,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 { @@ -103,11 +129,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 @@ -115,23 +146,34 @@ 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() { @@ -139,6 +181,7 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -171,8 +213,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; @@ -182,19 +223,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; @@ -219,96 +259,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
@@ -317,33 +365,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();
@@ -359,13 +406,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();
     }
 
@@ -380,7 +428,8 @@ 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);
+      com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result =
+          new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(this);
       result.name_ = name_;
       if (synonymSetBuilder_ == null) {
         result.synonymSet_ = synonymSet_;
@@ -395,38 +444,39 @@ public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest 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.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;
@@ -434,7 +484,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_;
         onChanged();
@@ -468,24 +520,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSynonymSetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSynonymSetFieldBuilder().getBuilder(), extensionRegistry);
+
+                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) {
@@ -498,20 +551,24 @@ public Builder mergeFrom(
 
     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; @@ -520,22 +577,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 { @@ -543,60 +603,73 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -604,39 +677,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 synonymSetBuilder_ != null || 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. */ 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) { @@ -652,11 +744,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) { @@ -670,17 +766,23 @@ 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 (synonymSet_ != null) { synonymSet_ = - com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_).mergeFrom(value).buildPartial(); + com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder(synonymSet_) + .mergeFrom(value) + .buildPartial(); } else { synonymSet_ = value; } @@ -692,11 +794,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() { if (synonymSetBuilder_ == null) { @@ -710,55 +816,71 @@ 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() { - + onChanged(); 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); } @@ -768,12 +890,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(); } @@ -782,27 +905,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; @@ -817,6 +940,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..9c9afff269cf --- /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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/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 71% 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 60de88455b77..7ffb1aad9d7e 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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. Any field masks will be ignored.
    * 
@@ -29,6 +49,8 @@ public enum UpdateType */ UPDATE_TYPE_REPLACE(1), /** + * + * *
    * Merge the fields into the existing entities.
    * 
@@ -37,6 +59,8 @@ public enum UpdateType */ UPDATE_TYPE_MERGE(2), /** + * + * *
    * Inserts the properties by names.
    * 
@@ -45,6 +69,8 @@ public enum UpdateType */ UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES(3), /** + * + * *
    * Replace the properties by names.
    * 
@@ -53,6 +79,8 @@ public enum UpdateType */ UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES(4), /** + * + * *
    * Delete the properties by names.
    * 
@@ -64,6 +92,8 @@ public enum UpdateType ; /** + * + * *
    * Defaults to full replace behavior, ie. FULL_REPLACE.
    * 
@@ -72,6 +102,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Fully replace all the fields. Any field masks will be ignored.
    * 
@@ -80,6 +112,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_REPLACE_VALUE = 1; /** + * + * *
    * Merge the fields into the existing entities.
    * 
@@ -88,6 +122,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_MERGE_VALUE = 2; /** + * + * *
    * Inserts the properties by names.
    * 
@@ -96,6 +132,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES_VALUE = 3; /** + * + * *
    * Replace the properties by names.
    * 
@@ -104,6 +142,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES_VALUE = 4; /** + * + * *
    * Delete the properties by names.
    * 
@@ -112,7 +152,6 @@ public enum UpdateType */ public static final int UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,52 +176,55 @@ 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; - 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; + 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; @@ -198,4 +240,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 70% 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 3356d9126225..21313c364170 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,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -/** - * Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} - */ -public final class UserInfo extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} */ +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.EMPTY; @@ -22,32 +36,35 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - 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; private volatile java.lang.Object id_; /** + * + * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -57,6 +74,7 @@ protected java.lang.Object newInstance(
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -65,14 +83,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.
@@ -82,16 +101,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 { @@ -102,37 +120,45 @@ public java.lang.String getId() { public static final int GROUP_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList groupIds_; /** + * + * *
    * 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. */ @@ -140,21 +166,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; @@ -166,8 +195,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_); } @@ -202,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.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; } @@ -235,126 +262,128 @@ 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; } - /** - * Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.contentwarehouse.v1.UserInfo} */ + 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(); @@ -366,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_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 @@ -387,7 +416,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); + com.google.cloud.contentwarehouse.v1.UserInfo result = + new com.google.cloud.contentwarehouse.v1.UserInfo(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (((bitField0_ & 0x00000001) != 0)) { @@ -403,38 +433,39 @@ public com.google.cloud.contentwarehouse.v1.UserInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -483,23 +514,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - id_ = input.readStringRequireUtf8(); - - 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(); + + 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) { @@ -509,10 +543,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.
@@ -522,13 +559,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; @@ -537,6 +574,8 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -546,15 +585,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 { @@ -562,6 +600,8 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -571,20 +611,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) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -594,15 +636,18 @@ public Builder setId(
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -612,60 +657,70 @@ 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) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList groupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList groupIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureGroupIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { groupIds_ = new com.google.protobuf.LazyStringArrayList(groupIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -673,85 +728,95 @@ 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) { + public Builder setGroupIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGroupIdsIsMutable(); + throw new NullPointerException(); + } + ensureGroupIdsIsMutable(); groupIds_.set(index, value); 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 groupIds to add. * @return This builder for chaining. */ - public Builder addGroupIds( - java.lang.String value) { + public Builder addGroupIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGroupIdsIsMutable(); + throw new NullPointerException(); + } + ensureGroupIdsIsMutable(); groupIds_.add(value); 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 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_); 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() { @@ -761,29 +826,31 @@ public Builder clearGroupIds() { 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) { + public Builder addGroupIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureGroupIdsIsMutable(); groupIds_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +860,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(); } @@ -807,27 +874,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; @@ -842,6 +909,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..3a90780e8b66 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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 514c540100bc..ed864f2e38ca 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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,47 +30,50 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  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;
   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),
@@ -64,6 +84,7 @@ public enum KindCase
     BOOLEAN_VALUE(7),
     KIND_NOT_SET(0);
     private final int value;
+
     private KindCase(int value) {
       this.value = value;
     }
@@ -79,35 +100,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 @@ -115,11 +147,14 @@ public boolean hasFloatValue() { return kindCase_ == 1; } /** + * + * *
    * Represents a float value.
    * 
* * float float_value = 1; + * * @return The floatValue. */ @java.lang.Override @@ -132,11 +167,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 @@ -144,11 +182,14 @@ public boolean hasIntValue() { return kindCase_ == 2; } /** + * + * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; + * * @return The intValue. */ @java.lang.Override @@ -161,22 +202,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() { @@ -187,8 +234,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; @@ -197,23 +243,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; } @@ -225,11 +272,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 @@ -237,21 +287,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.
    * 
@@ -261,18 +316,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 @@ -280,21 +338,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.
    * 
@@ -304,18 +367,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 @@ -323,21 +389,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.
    * 
@@ -347,18 +418,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 @@ -366,11 +440,14 @@ public boolean hasBooleanValue() { return kindCase_ == 7; } /** + * + * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; + * * @return The booleanValue. */ @java.lang.Override @@ -382,6 +459,7 @@ public boolean getBooleanValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,15 +471,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_); @@ -416,8 +491,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); } @@ -429,34 +503,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; @@ -466,43 +543,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: @@ -521,8 +592,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; @@ -546,8 +616,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: @@ -557,97 +626,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
@@ -657,33 +733,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();
@@ -702,9 +777,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
@@ -723,7 +798,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);
+      com.google.cloud.contentwarehouse.v1.Value result =
+          new com.google.cloud.contentwarehouse.v1.Value(this);
       if (kindCase_ == 1) {
         result.kind_ = kind_;
       }
@@ -766,38 +842,39 @@ public com.google.cloud.contentwarehouse.v1.Value 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.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;
@@ -807,39 +884,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();
@@ -867,54 +952,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) {
@@ -924,12 +1011,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() {
@@ -939,24 +1026,29 @@ public Builder clearKind() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * 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() { @@ -966,11 +1058,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. */ @@ -981,11 +1076,14 @@ public Builder setFloatValue(float value) { return this; } /** + * + * *
      * Represents a float value.
      * 
* * float float_value = 1; + * * @return This builder for chaining. */ public Builder clearFloatValue() { @@ -998,22 +1096,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() { @@ -1023,11 +1127,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. */ @@ -1038,11 +1145,14 @@ public Builder setIntValue(int value) { return this; } /** + * + * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; + * * @return This builder for chaining. */ public Builder clearIntValue() { @@ -1055,11 +1165,14 @@ public Builder clearIntValue() { } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1067,11 +1180,14 @@ public boolean hasStringValue() { return kindCase_ == 3; } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @return The stringValue. */ @java.lang.Override @@ -1081,8 +1197,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; @@ -1093,24 +1208,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; } @@ -1120,30 +1236,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) { + public Builder setStringValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 3; + 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() { @@ -1155,20 +1276,22 @@ 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) { + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); kindCase_ = 3; kind_ = value; onChanged(); @@ -1176,13 +1299,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 @@ -1190,11 +1319,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 @@ -1212,6 +1344,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { } } /** + * + * *
      * Represents an enum value.
      * 
@@ -1232,6 +1366,8 @@ public Builder setEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue value return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1250,6 +1386,8 @@ public Builder setEnumValue( return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1258,10 +1396,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; } @@ -1277,6 +1418,8 @@ public Builder mergeEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue val return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1300,6 +1443,8 @@ public Builder clearEnumValue() { return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1310,6 +1455,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValue.Builder getEnumValueBuilde return getEnumValueFieldBuilder().getBuilder(); } /** + * + * *
      * Represents an enum value.
      * 
@@ -1328,6 +1475,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui } } /** + * + * *
      * Represents an enum value.
      * 
@@ -1335,32 +1484,44 @@ 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()); kind_ = null; } kindCase_ = 4; - onChanged();; + onChanged(); + ; return enumValueBuilder_; } 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 @@ -1368,11 +1529,14 @@ public boolean hasDatetimeValue() { return kindCase_ == 5; } /** + * + * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; + * * @return The datetimeValue. */ @java.lang.Override @@ -1390,6 +1554,8 @@ public com.google.type.DateTime getDatetimeValue() { } } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1410,14 +1576,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(); @@ -1428,6 +1595,8 @@ public Builder setDatetimeValue( return this; } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1436,10 +1605,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; } @@ -1455,6 +1625,8 @@ public Builder mergeDatetimeValue(com.google.type.DateTime value) { return this; } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1478,6 +1650,8 @@ public Builder clearDatetimeValue() { return this; } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1488,6 +1662,8 @@ public com.google.type.DateTime.Builder getDatetimeValueBuilder() { return getDatetimeValueFieldBuilder().getBuilder(); } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1506,6 +1682,8 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { } } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1513,32 +1691,42 @@ 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; - onChanged();; + onChanged(); + ; return datetimeValueBuilder_; } 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 @@ -1546,11 +1734,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 @@ -1568,6 +1759,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { } } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1588,6 +1781,8 @@ public Builder setTimestampValue(com.google.cloud.contentwarehouse.v1.TimestampV return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1606,6 +1801,8 @@ public Builder setTimestampValue( return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1614,10 +1811,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; } @@ -1633,6 +1833,8 @@ public Builder mergeTimestampValue(com.google.cloud.contentwarehouse.v1.Timestam return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1656,6 +1858,8 @@ public Builder clearTimestampValue() { return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1666,6 +1870,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV return getTimestampValueFieldBuilder().getBuilder(); } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1673,7 +1879,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 { @@ -1684,6 +1891,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestamp } } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1691,41 +1900,53 @@ 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()); kind_ = null; } kindCase_ = 6; - onChanged();; + onChanged(); + ; return timestampValueBuilder_; } /** + * + * *
      * 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() { @@ -1735,11 +1956,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. */ @@ -1750,11 +1974,14 @@ public Builder setBooleanValue(boolean value) { return this; } /** + * + * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; + * * @return This builder for chaining. */ public Builder clearBooleanValue() { @@ -1765,9 +1992,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); } @@ -1777,12 +2004,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(); } @@ -1791,27 +2018,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; @@ -1826,6 +2053,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 5187b37840fc..e1b38cec20dc 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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/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/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/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 227f2493ebaa..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,566 +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 static abstract class DocumentLinkServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedTargetsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedSourcesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentLinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentLinkMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_DOCUMENT_LINK))) - .addMethod( - getDeleteDocumentLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DOCUMENT_LINK))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 DocumentLinkServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentLinkServiceImplBase 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(); - } - } - } - - 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 a65772dff081..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,679 +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 static abstract class DocumentSchemaServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a document schema.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentSchemaMethod(), responseObserver); - } - - /** - *
-     * Lists document schemas.
-     * 
- */ - public void listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentSchemasMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_GET_DOCUMENT_SCHEMA))) - .addMethod( - getDeleteDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty>( - this, 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>( - this, METHODID_LIST_DOCUMENT_SCHEMAS))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 DocumentSchemaServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentSchemaServiceImplBase 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(); - } - } - } - - 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 9876dfb7ef11..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,843 +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 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 static abstract class DocumentServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a document.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchDocumentsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_CREATE_DOCUMENT))) - .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document>( - this, METHODID_GET_DOCUMENT))) - .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( - this, METHODID_UPDATE_DOCUMENT))) - .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DOCUMENT))) - .addMethod( - getSearchDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( - this, METHODID_SEARCH_DOCUMENTS))) - .addMethod( - getFetchAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse>( - this, METHODID_FETCH_ACL))) - .addMethod( - getSetAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse>( - this, METHODID_SET_ACL))) - .build(); - } - } - - /** - *
-   * 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); - } - - /** - *
-     * 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); - } - } - - /** - *
-   * 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); - } - - /** - *
-     * 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); - } - } - - /** - *
-   * 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); - } - - /** - *
-     * 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_FETCH_ACL = 5; - private static final int METHODID_SET_ACL = 6; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final DocumentServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentServiceImplBase 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_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(); - } - } - } - - 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(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 91eab2126efb..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,651 +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 static abstract class RuleSetServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a ruleset.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuleSetMethod(), responseObserver); - } - - /** - *
-     * Lists rulesets.
-     * 
- */ - public void listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuleSetsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_UPDATE_RULE_SET))) - .addMethod( - getDeleteRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, - com.google.protobuf.Empty>( - this, 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>( - this, METHODID_LIST_RULE_SETS))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 RuleSetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(RuleSetServiceImplBase 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(); - } - } - } - - 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 a8a2f934476f..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,675 +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 static abstract class SynonymSetServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateSynonymSetMethod(), 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.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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSynonymSetsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, METHODID_UPDATE_SYNONYM_SET))) - .addMethod( - getDeleteSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, - com.google.protobuf.Empty>( - this, 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>( - this, METHODID_LIST_SYNONYM_SETS))) - .build(); - } - } - - /** - *
-   * 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 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 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 SynonymSetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SynonymSetServiceImplBase 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(); - } - } - } - - 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 5a0496eb2b52..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,70 +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\234\001\n$com.google.cloud.c" + - "ontentwarehouse.v1B AsyncDocumentService" + - "RequestProtoP\001ZPgoogle.golang.org/genpro" + - "to/googleapis/cloud/contentwarehouse/v1;" + - "contentwarehouseb\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 aac3cfea8e0f..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,133 +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*\336" + - "\001\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*O\n\014DatabaseType\022" + - "\016\n\nDB_UNKNOWN\020\000\022\024\n\020DB_INFRA_SPANNER\020\001\022\031\n" + - "\025DB_CLOUD_SQL_POSTGRES\020\002*\252\001\n\021AccessContr" + - "olMode\022\024\n\020ACL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE" + - "_UNIVERSAL_ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT" + - "_LEVEL_ACCESS_CONTROL_BYOID\020\002\022.\n*ACL_MOD" + - "E_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI\020\003B\335\001" + - "\n$com.google.cloud.contentwarehouse.v1B\013" + - "CommonProtoP\001ZPgoogle.golang.org/genprot" + - "o/googleapis/cloud/contentwarehouse/v1;c" + - "ontentwarehouse\352AS\n(contentwarehouse.goo" + - "gleapis.com/Location\022\'projects/{project}" + - "/locations/{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 419c85e4a6f2..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,218 +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\nproperties\030\007 " + - "\003(\0132*.google.cloud.contentwarehouse.v1.P" + - "roperty\0224\n\013update_time\030\010 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\0224\n\013create_time\030\t \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n\026r" + - "aw_document_file_type\030\n \001(\01625.google.clo" + - "ud.contentwarehouse.v1.RawDocumentFileTy" + - "pe\022\025\n\rasync_enabled\030\014 \001(\010\022 \n\030text_extrac" + - "tion_disabled\030\023 \001(\010\022\017\n\007creator\030\r \001(\t\022\017\n\007" + - "updater\030\016 \001(\t:\272\001\352A\266\001\n(contentwarehouse.g" + - "oogleapis.com/Document\022\n\nproperties\030\001 \003(\0132*.google.c" + - "loud.contentwarehouse.v1.Property\"\260\001\n\013Ma" + - "pProperty\022I\n\006fields\030\001 \003(\01329.google.cloud" + - ".contentwarehouse.v1.MapProperty.FieldsE" + - "ntry\032V\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005valu" + - "e\030\002 \001(\0132\'.google.cloud.contentwarehouse." + - "v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013float_value\030\001 " + - "\001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022\026\n\014string_val" + - "ue\030\003 \001(\tH\000\022A\n\nenum_value\030\004 \001(\0132+.google." + - "cloud.contentwarehouse.v1.EnumValueH\000\022/\n" + - "\016datetime_value\030\005 \001(\0132\025.google.type.Date" + - "TimeH\000\022K\n\017timestamp_value\030\006 \001(\01320.google" + - ".cloud.contentwarehouse.v1.TimestampValu" + - "eH\000\022\027\n\rboolean_value\030\007 \001(\010H\000B\006\n\004kind\"\032\n\t" + - "EnumValue\022\r\n\005value\030\001 \001(\t*\341\001\n\023RawDocument" + - "FileType\022&\n\"RAW_DOCUMENT_FILE_TYPE_UNSPE" + - "CIFIED\020\000\022\036\n\032RAW_DOCUMENT_FILE_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_DOCUME" + - "NT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_DOCUMENT_FILE" + - "_TYPE_TEXT\020\005B\211\001\n$com.google.cloud.conten" + - "twarehouse.v1B\rDocumentProtoP\001ZPgoogle.g" + - "olang.org/genproto/googleapis/cloud/cont" + - "entwarehouse/v1;contentwarehouseb\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", "TextExtractionDisabled", "Creator", "Updater", "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", }); - 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 2680b776f702..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,205 +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_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\"\252\003\n\016DocumentSche" + - "ma\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + - "\340A\002\022R\n\024property_definitions\030\003 \003(\01324.goog" + - "le.cloud.contentwarehouse.v1.PropertyDef" + - "inition\022\032\n\022document_is_folder\030\004 \001(\010\0224\n\013u" + - "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\022\023\n\013description\030\007" + - " \001(\t:~\352A{\n.contentwarehouse.googleapis.c" + - "om/DocumentSchema\022Iprojects/{project}/lo" + - "cations/{location}/documentSchemas/{docu" + - "ment_schema}\"\343\006\n\022PropertyDefinition\022\021\n\004n" + - "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\014 \001(\t\022\025\n\r" + - "is_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_metadata" + - "\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022T\n\024integer_t" + - "ype_options\030\007 \001(\01324.google.cloud.content" + - "warehouse.v1.IntegerTypeOptionsH\000\022P\n\022flo" + - "at_type_options\030\010 \001(\01322.google.cloud.con" + - "tentwarehouse.v1.FloatTypeOptionsH\000\022N\n\021t" + - "ext_type_options\030\t \001(\01321.google.cloud.co" + - "ntentwarehouse.v1.TextTypeOptionsH\000\022V\n\025p" + - "roperty_type_options\030\n \001(\01325.google.clou" + - "d.contentwarehouse.v1.PropertyTypeOption" + - "sH\000\022N\n\021enum_type_options\030\013 \001(\01321.google." + - "cloud.contentwarehouse.v1.EnumTypeOption" + - "sH\000\022W\n\026date_time_type_options\030\r \001(\01325.go" + - "ogle.cloud.contentwarehouse.v1.DateTimeT" + - "ypeOptionsH\000\022L\n\020map_type_options\030\017 \001(\01320" + - ".google.cloud.contentwarehouse.v1.MapTyp" + - "eOptionsH\000\022X\n\026timestamp_type_options\030\020 \001" + - "(\01326.google.cloud.contentwarehouse.v1.Ti" + - "mestampTypeOptionsH\000B\024\n\022value_type_optio" + - "ns\"\024\n\022IntegerTypeOptions\"\022\n\020FloatTypeOpt" + - "ions\"\021\n\017TextTypeOptions\"\025\n\023DateTimeTypeO" + - "ptions\"\020\n\016MapTypeOptions\"\026\n\024TimestampTyp" + - "eOptions\"n\n\023PropertyTypeOptions\022W\n\024prope" + - "rty_definitions\030\001 \003(\01324.google.cloud.con" + - "tentwarehouse.v1.PropertyDefinitionB\003\340A\002" + - "\"R\n\017EnumTypeOptions\022\034\n\017possible_values\030\001" + - " \003(\tB\003\340A\002\022!\n\031validation_check_disabled\030\002" + - " \001(\010B\217\001\n$com.google.cloud.contentwarehou" + - "se.v1B\023DocumentSchemaProtoP\001ZPgoogle.gol" + - "ang.org/genproto/googleapis/cloud/conten" + - "twarehouse/v1;contentwarehouseb\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", "IntegerTypeOptions", "FloatTypeOptions", "TextTypeOptions", "PropertyTypeOptions", "EnumTypeOptions", "DateTimeTypeOptions", "MapTypeOptions", "TimestampTypeOptions", "ValueTypeOptions", }); - 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 2045691e11f8..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,184 +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\"\257\001\n\033CreateDocumentSch" + - "emaRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(cont" + - "entwarehouse.googleapis.com/Location\022N\n\017" + - "document_schema\030\002 \001(\01320.google.cloud.con" + - "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"`\n\030" + - "GetDocumentSchemaRequest\022D\n\004name\030\001 \001(\tB6" + - "\340A\002\372A0\n.contentwarehouse.googleapis.com/" + - "DocumentSchema\"\263\001\n\033UpdateDocumentSchemaR" + - "equest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.contentwar" + - "ehouse.googleapis.com/DocumentSchema\022N\n\017" + - "document_schema\030\002 \001(\01320.google.cloud.con" + - "tentwarehouse.v1.DocumentSchemaB\003\340A\002\"c\n\033" + - "DeleteDocumentSchemaRequest\022D\n\004name\030\001 \001(" + - "\tB6\340A\002\372A0\n.contentwarehouse.googleapis.c" + - "om/DocumentSchema\"\205\001\n\032ListDocumentSchema" + - "sRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(conten" + - "twarehouse.googleapis.com/Location\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\033Li" + - "stDocumentSchemasResponse\022J\n\020document_sc" + - "hemas\030\001 \003(\01320.google.cloud.contentwareho" + - "use.v1.DocumentSchema\022\027\n\017next_page_token" + - "\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022\356\001\n\024Cre" + - "ateDocumentSchema\022=.google.cloud.content" + - "warehouse.v1.CreateDocumentSchemaRequest" + - "\0320.google.cloud.contentwarehouse.v1.Docu" + - "mentSchema\"e\202\323\344\223\002F\"3/v1/{parent=projects" + - "/*/locations/*}/documentSchemas:\017documen" + - "t_schema\332A\026parent,document_schema\022\336\001\n\024Up" + - "dateDocumentSchema\022=.google.cloud.conten" + - "twarehouse.v1.UpdateDocumentSchemaReques" + - "t\0320.google.cloud.contentwarehouse.v1.Doc" + - "umentSchema\"U\202\323\344\223\002823/v1/{name=projects/" + - "*/locations/*/documentSchemas/*}:\001*\332A\024na" + - "me,document_schema\022\305\001\n\021GetDocumentSchema" + - "\022:.google.cloud.contentwarehouse.v1.GetD" + - "ocumentSchemaRequest\0320.google.cloud.cont" + - "entwarehouse.v1.DocumentSchema\"B\202\323\344\223\0025\0223" + - "/v1/{name=projects/*/locations/*/documen" + - "tSchemas/*}\332A\004name\022\261\001\n\024DeleteDocumentSch" + - "ema\022=.google.cloud.contentwarehouse.v1.D" + - "eleteDocumentSchemaRequest\032\026.google.prot" + - "obuf.Empty\"B\202\323\344\223\0025*3/v1/{name=projects/*" + - "/locations/*/documentSchemas/*}\332A\004name\022\330" + - "\001\n\023ListDocumentSchemas\022<.google.cloud.co" + - "ntentwarehouse.v1.ListDocumentSchemasReq" + - "uest\032=.google.cloud.contentwarehouse.v1." + - "ListDocumentSchemasResponse\"D\202\323\344\223\0025\0223/v1" + - "/{parent=projects/*/locations/*}/documen" + - "tSchemas\332A\006parent\032S\312A\037contentwarehouse.g" + - "oogleapis.com\322A.https://www.googleapis.c" + - "om/auth/cloud-platformB\226\001\n$com.google.cl" + - "oud.contentwarehouse.v1B\032DocumentSchemaS" + - "erviceProtoP\001ZPgoogle.golang.org/genprot" + - "o/googleapis/cloud/contentwarehouse/v1;c" + - "ontentwarehouseb\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 9a4c2f50cdb6..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,246 +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\033google/protobu" + - "f/empty.proto\"\354\001\n\026CreateDocumentResponse" + - "\022<\n\010document\030\001 \001(\0132*.google.cloud.conten" + - "twarehouse.v1.Document\022N\n\022rule_engine_ou" + - "tput\030\002 \001(\01322.google.cloud.contentwarehou" + - "se.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\013" + - "22.google.cloud.contentwarehouse.v1.Resp" + - "onseMetadata\"\354\001\n\026UpdateDocumentResponse\022" + - "<\n\010document\030\001 \001(\0132*.google.cloud.content" + - "warehouse.v1.Document\022N\n\022rule_engine_out" + - "put\030\002 \001(\01322.google.cloud.contentwarehous" + - "e.v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\0132" + - "2.google.cloud.contentwarehouse.v1.Respo" + - "nseMetadata\"\243\001\n\010QAResult\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\"\374\003\n\027SearchDocumentsRes" + - "ponse\022f\n\022matching_documents\030\001 \003(\0132J.goog" + - "le.cloud.contentwarehouse.v1.SearchDocum" + - "entsResponse.MatchingDocument\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\022D\n\010me" + - "tadata\030\004 \001(\01322.google.cloud.contentwareh" + - "ouse.v1.ResponseMetadata\022W\n\027histogram_qu" + - "ery_results\030\006 \003(\01326.google.cloud.content" + - "warehouse.v1.HistogramQueryResult\032\254\001\n\020Ma" + - "tchingDocument\022<\n\010document\030\001 \001(\0132*.googl" + - "e.cloud.contentwarehouse.v1.Document\022\033\n\023" + - "search_text_snippet\030\002 \001(\t\022=\n\tqa_result\030\003" + - " \001(\0132*.google.cloud.contentwarehouse.v1." + - "QAResult\"\177\n\020FetchAclResponse\022%\n\006policy\030\001" + - " \001(\0132\025.google.iam.v1.Policy\022D\n\010metadata\030" + - "\002 \001(\01322.google.cloud.contentwarehouse.v1" + - ".ResponseMetadata\"}\n\016SetAclResponse\022%\n\006p" + - "olicy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010me" + - "tadata\030\002 \001(\01322.google.cloud.contentwareh" + - "ouse.v1.ResponseMetadata2\350\r\n\017DocumentSer" + - "vice\022\317\001\n\016CreateDocument\0227.google.cloud.c" + - "ontentwarehouse.v1.CreateDocumentRequest" + - "\0328.google.cloud.contentwarehouse.v1.Crea" + - "teDocumentResponse\"J\202\323\344\223\0022\"-/v1/{parent=" + - "projects/*/locations/*}/documents:\001*\332A\017p" + - "arent,document\022\371\001\n\013GetDocument\0224.google." + - "cloud.contentwarehouse.v1.GetDocumentReq" + - "uest\032*.google.cloud.contentwarehouse.v1." + - "Document\"\207\001\202\323\344\223\002z\"1/v1/{name=projects/*/" + - "locations/*/documents/*}:get:\001*ZB\"=/v1/{" + - "name=projects/*/locations/*/documents/re" + - "ferenceId/*}:get:\001*\332A\004name\022\216\002\n\016UpdateDoc" + - "ument\0227.google.cloud.contentwarehouse.v1" + - ".UpdateDocumentRequest\0328.google.cloud.co" + - "ntentwarehouse.v1.UpdateDocumentResponse" + - "\"\210\001\202\323\344\223\002r2-/v1/{name=projects/*/location" + - "s/*/documents/*}:\001*Z>29/v1/{name=project" + - "s/*/locations/*/documents/referenceId/*}" + - ":\001*\332A\rname,document\022\362\001\n\016DeleteDocument\0227" + - ".google.cloud.contentwarehouse.v1.Delete" + - "DocumentRequest\032\026.google.protobuf.Empty\"" + - "\216\001\202\323\344\223\002\200\001\"4/v1/{name=projects/*/location" + - "s/*/documents/*}:delete:\001*ZE\"@/v1/{name=" + - "projects/*/locations/*/documents/referen" + - "ceId/*}:delete:\001*\332A\004name\022\320\001\n\017SearchDocum" + - "ents\0228.google.cloud.contentwarehouse.v1." + - "SearchDocumentsRequest\0329.google.cloud.co" + - "ntentwarehouse.v1.SearchDocumentsRespons" + - "e\"H\202\323\344\223\0029\"4/v1/{parent=projects/*/locati" + - "ons/*}/documents:search:\001*\332A\006parent\022\354\001\n\010" + - "FetchAcl\0221.google.cloud.contentwarehouse" + - ".v1.FetchAclRequest\0322.google.cloud.conte" + - "ntwarehouse.v1.FetchAclResponse\"y\202\323\344\223\002h\"" + - ":/v1/{resource=projects/*/locations/*/do" + - "cuments/*}:fetchAcl:\001*Z\'\"\"/v1/{resource=" + - "projects/*}:fetchAcl:\001*\332A\010resource\022\351\001\n\006S" + - "etAcl\022/.google.cloud.contentwarehouse.v1" + - ".SetAclRequest\0320.google.cloud.contentwar" + - "ehouse.v1.SetAclResponse\"|\202\323\344\223\002d\"8/v1/{r" + - "esource=projects/*/locations/*/documents" + - "/*}:setAcl:\001*Z%\" /v1/{resource=projects/" + - "*}:setAcl:\001*\332A\017resource,policy\032S\312A\037conte" + - "ntwarehouse.googleapis.com\322A.https://www" + - ".googleapis.com/auth/cloud-platformB\220\001\n$" + - "com.google.cloud.contentwarehouse.v1B\024Do" + - "cumentServiceProtoP\001ZPgoogle.golang.org/" + - "genproto/googleapis/cloud/contentwarehou" + - "se/v1;contentwarehouseb\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.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", }); - 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", }); - 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.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 2283d3a959d2..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,225 +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_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\"\234\003\n\025Cr" + - "eateDocumentRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" + - "\372A*\n(contentwarehouse.googleapis.com/Loc" + - "ation\022A\n\010document\030\002 \001(\0132*.google.cloud.c" + - "ontentwarehouse.v1.DocumentB\003\340A\002\022K\n\020requ" + - "est_metadata\030\003 \001(\01321.google.cloud.conten" + - "twarehouse.v1.RequestMetadata\022%\n\006policy\030" + - "\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_ai" + - "_document_option\030\005 \001(\01327.google.cloud.co" + - "ntentwarehouse.v1.CloudAIDocumentOption\022" + - "/\n\013create_mask\030\006 \001(\0132\032.google.protobuf.F" + - "ieldMask\"\241\001\n\022GetDocumentRequest\022>\n\004name\030" + - "\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.googleap" + - "is.com/Document\022K\n\020request_metadata\030\002 \001(" + - "\01321.google.cloud.contentwarehouse.v1.Req" + - "uestMetadata\"\213\003\n\025UpdateDocumentRequest\022>" + - "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.g" + - "oogleapis.com/Document\022A\n\010document\030\002 \001(\013" + - "2*.google.cloud.contentwarehouse.v1.Docu" + - "mentB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" + - "ogle.cloud.contentwarehouse.v1.RequestMe" + - "tadata\022Y\n\030cloud_ai_document_option\030\005 \001(\013" + - "27.google.cloud.contentwarehouse.v1.Clou" + - "dAIDocumentOption\022G\n\016update_options\030\006 \001(" + - "\0132/.google.cloud.contentwarehouse.v1.Upd" + - "ateOptions\"\244\001\n\025DeleteDocumentRequest\022>\n\004" + - "name\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.goo" + - "gleapis.com/Document\022K\n\020request_metadata" + - "\030\002 \001(\01321.google.cloud.contentwarehouse.v" + - "1.RequestMetadata\"\271\003\n\026SearchDocumentsReq" + - "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwar" + - "ehouse.googleapis.com/Location\022K\n\020reques" + - "t_metadata\030\003 \001(\01321.google.cloud.contentw" + - "arehouse.v1.RequestMetadata\022G\n\016document_" + - "query\030\004 \001(\0132/.google.cloud.contentwareho" + - "use.v1.DocumentQuery\022\016\n\006offset\030\005 \001(\005\022\021\n\t" + - "page_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001(\t\022\020\n\010o" + - "rder_by\030\010 \001(\t\022K\n\021histogram_queries\030\t \003(\013" + - "20.google.cloud.contentwarehouse.v1.Hist" + - "ogramQuery\022\032\n\022require_total_size\030\n \001(\010\022\025" + - "\n\rqa_size_limit\030\013 \001(\005\"\214\001\n\017FetchAclReques" + - "t\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022K\n\020request_meta" + - "data\030\002 \001(\01321.google.cloud.contentwarehou" + - "se.v1.RequestMetadata\022\025\n\rproject_owner\030\003" + - " \001(\010\"\266\001\n\rSetAclRequest\022\025\n\010resource\030\001 \001(\t" + - "B\003\340A\002\022*\n\006policy\030\002 \001(\0132\025.google.iam.v1.Po" + - "licyB\003\340A\002\022K\n\020request_metadata\030\003 \001(\01321.go" + - "ogle.cloud.contentwarehouse.v1.RequestMe" + - "tadata\022\025\n\rproject_owner\030\004 \001(\010B\227\001\n$com.go" + - "ogle.cloud.contentwarehouse.v1B\033Document" + - "ServiceRequestProtoP\001ZPgoogle.golang.org" + - "/genproto/googleapis/cloud/contentwareho" + - "use/v1;contentwarehouseb\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", "QaSizeLimit", }); - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - 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(7); - 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 e0f54ed892db..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,118 +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; - - 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\"\245\003\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\025\n\rquery_conte" + - "xt\030\n \003(\t\022\037\n\027document_creator_filter\030\013 \003(" + - "\t\"\316\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\"I\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\"v\n\016PropertyFilter\022Q\n\024document" + - "_schema_name\030\001 \001(\tB3\372A0\n.contentwarehous" + - "e.googleapis.com/DocumentSchema\022\021\n\tcondi" + - "tion\030\002 \001(\t\"\250\001\n\016FileTypeFilter\022L\n\tfile_ty" + - "pe\030\001 \001(\01629.google.cloud.contentwarehouse" + - ".v1.FileTypeFilter.FileType\"H\n\010FileType\022" + - "\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006F" + - "OLDER\020\002\022\014\n\010DOCUMENT\020\003B\210\001\n$com.google.clo" + - "ud.contentwarehouse.v1B\014FiltersProtoP\001ZP" + - "google.golang.org/genproto/googleapis/cl" + - "oud/contentwarehouse/v1;contentwarehouse" + - "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", "QueryContext", "DocumentCreatorFilter", }); - 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", }); - 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 d9571e15c975..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,113 +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\"\250\001\n\016HistogramQu" + - "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" + - "precise_result_size\030\002 \001(\010\022X\n\007filters\030\003 \001" + - "(\0132B.google.cloud.contentwarehouse.v1.Hi" + - "stogramQueryPropertyNameFilterB\003\340A\001\"\272\002\n " + - "HistogramQueryPropertyNameFilter\022M\n\020docu" + - "ment_schemas\030\001 \003(\tB3\372A0\n.contentwarehous" + - "e.googleapis.com/DocumentSchema\022\026\n\016prope" + - "rty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.google" + - ".cloud.contentwarehouse.v1.HistogramQuer" + - "yPropertyNameFilter.HistogramYAxis\"L\n\016Hi" + - "stogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMENT" + - "\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024His" + - "togramQueryResult\022\027\n\017histogram_query\030\001 \001" + - "(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.con" + - "tentwarehouse.v1.HistogramQueryResult.Hi" + - "stogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\212\001\n$com.google.cl" + - "oud.contentwarehouse.v1B\016HistogramProtoP" + - "\001ZPgoogle.golang.org/genproto/googleapis" + - "/cloud/contentwarehouse/v1;contentwareho" + - "useb\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/PropertyTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java deleted file mode 100644 index 69e9d438a906..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java +++ /dev/null @@ -1,53 +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 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/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 c85ae8d469bc..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,328 +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}\"" + - "\376\001\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\"8" + - "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020" + - "\001\022\r\n\tON_UPDATE\020\004\"\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\213\001\n$com.google.cloud.conte" + - "ntwarehouse.v1B\017RuleEngineProtoP\001ZPgoogl" + - "e.golang.org/genproto/googleapis/cloud/c" + - "ontentwarehouse/v1;contentwarehouseb\006pro" + - "to3" - }; - 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 2a1d11048e57..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,89 +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\202\323\344\223\0028\",/v1/" + - "{parent=projects/*/locations/*}/ruleSets" + - ":\010rule_set\332A\017parent,rule_set\022\251\001\n\nGetRule" + - "Set\0223.google.cloud.contentwarehouse.v1.G" + - "etRuleSetRequest\032).google.cloud.contentw" + - "arehouse.v1.RuleSet\";\202\323\344\223\002.\022,/v1/{name=p" + - "rojects/*/locations/*/ruleSets/*}\332A\004name" + - "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" + - "twarehouse.v1.UpdateRuleSetRequest\032).goo" + - "gle.cloud.contentwarehouse.v1.RuleSet\"G\202" + - "\323\344\223\00212,/v1/{name=projects/*/locations/*/" + - "ruleSets/*}:\001*\332A\rname,rule_set\022\234\001\n\rDelet" + - "eRuleSet\0226.google.cloud.contentwarehouse" + - ".v1.DeleteRuleSetRequest\032\026.google.protob" + - "uf.Empty\";\202\323\344\223\002.*,/v1/{name=projects/*/l" + - "ocations/*/ruleSets/*}\332A\004name\022\274\001\n\014ListRu" + - "leSets\0225.google.cloud.contentwarehouse.v" + - "1.ListRuleSetsRequest\0326.google.cloud.con" + - "tentwarehouse.v1.ListRuleSetsResponse\"=\202" + - "\323\344\223\002.\022,/v1/{parent=projects/*/locations/" + - "*}/ruleSets\332A\006parent\032S\312A\037contentwarehous" + - "e.googleapis.com\322A.https://www.googleapi" + - "s.com/auth/cloud-platformB\217\001\n$com.google" + - ".cloud.contentwarehouse.v1B\023RuleSetServi" + - "ceProtoP\001ZPgoogle.golang.org/genproto/go" + - "ogleapis/cloud/contentwarehouse/v1;conte" + - "ntwarehouseb\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 9756655d4744..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,140 +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\"\232\001\n\024CreateRuleSetRequest\022@\n\006p" + - "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" + - "ogleapis.com/Location\022@\n\010rule_set\030\002 \001(\0132" + - ").google.cloud.contentwarehouse.v1.RuleS" + - "etB\003\340A\002\"R\n\021GetRuleSetRequest\022=\n\004name\030\001 \001" + - "(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis." + - "com/RuleSet\"\227\001\n\024UpdateRuleSetRequest\022=\n\004" + - "name\030\001 \001(\tB/\340A\002\372A)\n\'contentwarehouse.goo" + - "gleapis.com/RuleSet\022@\n\010rule_set\030\002 \001(\0132)." + - "google.cloud.contentwarehouse.v1.RuleSet" + - "B\003\340A\002\"U\n\024DeleteRuleSetRequest\022=\n\004name\030\001 " + - "\001(\tB/\340A\002\372A)\n\'contentwarehouse.googleapis" + - ".com/RuleSet\"~\n\023ListRuleSetsRequest\022@\n\006p" + - "arent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehouse.go" + - "ogleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005" + - "\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleSetsResp" + - "onse\022<\n\trule_sets\030\001 \003(\0132).google.cloud.c" + - "ontentwarehouse.v1.RuleSet\022\027\n\017next_page_" + - "token\030\002 \001(\tB\226\001\n$com.google.cloud.content" + - "warehouse.v1B\032RuleSetServiceRequestProto" + - "P\001ZPgoogle.golang.org/genproto/googleapi" + - "s/cloud/contentwarehouse/v1;contentwareh" + - "ouseb\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/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 6b2cef44efc9..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,76 +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\213\001\n$com.google.cloud.contentwar" + - "ehouse.v1B\017SynonymSetProtoP\001ZPgoogle.gol" + - "ang.org/genproto/googleapis/cloud/conten" + - "twarehouse/v1;contentwarehouseb\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 25e1cad00036..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,91 +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\202\323\344\223\002>\"//v1/{parent=projects/*/loca" + - "tions/*}/synonymSets:\013synonym_set\332A\022pare" + - "nt,synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" + - "e.cloud.contentwarehouse.v1.GetSynonymSe" + - "tRequest\032,.google.cloud.contentwarehouse" + - ".v1.SynonymSet\">\202\323\344\223\0021\022//v1/{name=projec" + - "ts/*/locations/*/synonymSets/*}\332A\004name\022\324" + - "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" + - "ntwarehouse.v1.UpdateSynonymSetRequest\032," + - ".google.cloud.contentwarehouse.v1.Synony" + - "mSet\"W\202\323\344\223\002>2//v1/{name=projects/*/locat" + - "ions/*/synonymSets/*}:\013synonym_set\332A\020nam" + - "e,synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" + - "gle.cloud.contentwarehouse.v1.DeleteSyno" + - "nymSetRequest\032\026.google.protobuf.Empty\">\202" + - "\323\344\223\0021*//v1/{name=projects/*/locations/*/" + - "synonymSets/*}\332A\004name\022\310\001\n\017ListSynonymSet" + - "s\0228.google.cloud.contentwarehouse.v1.Lis" + - "tSynonymSetsRequest\0329.google.cloud.conte" + - "ntwarehouse.v1.ListSynonymSetsResponse\"@" + - "\202\323\344\223\0021\022//v1/{parent=projects/*/locations" + - "/*}/synonymSets\332A\006parent\032S\312A\037contentware" + - "house.googleapis.com\322A.https://www.googl" + - "eapis.com/auth/cloud-platformB\222\001\n$com.go" + - "ogle.cloud.contentwarehouse.v1B\026SynonymS" + - "etServiceProtoP\001ZPgoogle.golang.org/genp" + - "roto/googleapis/cloud/contentwarehouse/v" + - "1;contentwarehouseb\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 c89b31defcc3..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,141 +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\"\243\001\n\027CreateSynonymSetRequest" + - "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(contentwarehou" + - "se.googleapis.com/Location\022F\n\013synonym_se" + - "t\030\002 \001(\0132,.google.cloud.contentwarehouse." + - "v1.SynonymSetB\003\340A\002\"X\n\024GetSynonymSetReque" + - "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*contentwarehou" + - "se.googleapis.com/SynonymSet\"\201\001\n\026ListSyn" + - "onymSetsRequest\022@\n\006parent\030\001 \001(\tB0\340A\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" + - "\"v\n\027ListSynonymSetsResponse\022B\n\014synonym_s" + - "ets\030\001 \003(\0132,.google.cloud.contentwarehous" + - "e.v1.SynonymSet\022\027\n\017next_page_token\030\002 \001(\t" + - "\"\243\001\n\027UpdateSynonymSetRequest\022@\n\004name\030\001 \001" + - "(\tB2\340A\002\372A,\n*contentwarehouse.googleapis." + - "com/SynonymSet\022F\n\013synonym_set\030\002 \001(\0132,.go" + - "ogle.cloud.contentwarehouse.v1.SynonymSe" + - "tB\003\340A\002\"[\n\027DeleteSynonymSetRequest\022@\n\004nam" + - "e\030\001 \001(\tB2\340A\002\372A,\n*contentwarehouse.google" + - "apis.com/SynonymSetB\231\001\n$com.google.cloud" + - ".contentwarehouse.v1B\035SynonymSetServiceR" + - "equestProtoP\001ZPgoogle.golang.org/genprot" + - "o/googleapis/cloud/contentwarehouse/v1;c" + - "ontentwarehouseb\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(); -}