From acfe67c76ab04a11f0371978437021fec54b8647 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 9 Nov 2022 19:52:49 +0000 Subject: [PATCH 1/2] feat: publish Google Cloud's Cloud Knowledge Graph (CKG) API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CKG lookup and search APIs enable customers to search, link and federate their own knowledge with Google’s. PiperOrigin-RevId: 487280461 Source-Link: https://github.com/googleapis/googleapis/commit/f19c628a8548cd14999d26d966f42b78c381c23e Source-Link: https://github.com/googleapis/googleapis-gen/commit/03934bf2f9ab806e73c8c7595cac9fe0597ba996 Copy-Tag: eyJwIjoiamF2YS1lbnRlcnByaXNla25vd2xlZGdlZ3JhcGgvLk93bEJvdC55YW1sIiwiaCI6IjAzOTM0YmYyZjlhYjgwNmU3M2M4Yzc1OTVjYWM5ZmUwNTk3YmE5OTYifQ== --- .../EnterpriseKnowledgeGraphServiceGrpc.java | 941 --------- .../v1/AffinityClusteringConfigOrBuilder.java | 38 - .../v1/BigQueryInputConfigOrBuilder.java | 79 - ...tityReconciliationJobRequestOrBuilder.java | 58 - .../ConnectedComponentsConfigOrBuilder.java | 38 - ...tityReconciliationJobRequestOrBuilder.java | 100 - ...tityReconciliationJobRequestOrBuilder.java | 58 - ...tityReconciliationJobRequestOrBuilder.java | 58 - .../v1/JobStateProto.java | 63 - .../v1/OperationMetadataProto.java | 82 - .../v1/ServiceProto.java | 421 ---- ...EnterpriseKnowledgeGraphServiceClient.java | 522 +++++ ...terpriseKnowledgeGraphServiceSettings.java | 45 + .../v1/gapic_metadata.json | 12 + .../v1/package-info.java | 0 .../EnterpriseKnowledgeGraphServiceStub.java | 24 + ...riseKnowledgeGraphServiceStubSettings.java | 109 +- ...eKnowledgeGraphServiceCallableFactory.java | 0 ...pcEnterpriseKnowledgeGraphServiceStub.java | 129 ++ ...eKnowledgeGraphServiceCallableFactory.java | 0 ...onEnterpriseKnowledgeGraphServiceStub.java | 218 +++ ...owledgeGraphServiceClientHttpJsonTest.java | 387 ++++ ...rpriseKnowledgeGraphServiceClientTest.java | 347 ++++ .../MockEnterpriseKnowledgeGraphService.java | 0 ...ckEnterpriseKnowledgeGraphServiceImpl.java | 82 + .../EnterpriseKnowledgeGraphServiceGrpc.java | 1007 ++++++++++ .../v1/AffinityClusteringConfig.java | 324 ++-- .../v1/AffinityClusteringConfigOrBuilder.java | 19 + .../v1/BigQueryInputConfig.java | 457 ++--- .../v1/BigQueryInputConfigOrBuilder.java | 49 + .../CancelEntityReconciliationJobRequest.java | 479 ++--- ...tityReconciliationJobRequestOrBuilder.java | 33 + .../v1/CloudKnowledgeGraphEntityName.java | 240 +++ .../v1/CommonOperationMetadata.java | 638 +++--- .../v1/CommonOperationMetadataOrBuilder.java | 40 +- .../v1/ConnectedComponentsConfig.java | 327 ++-- .../ConnectedComponentsConfigOrBuilder.java | 19 + .../CreateEntityReconciliationJobRequest.java | 648 +++---- ...tityReconciliationJobRequestOrBuilder.java | 60 + .../DeleteEntityReconciliationJobRequest.java | 479 ++--- ...tityReconciliationJobRequestOrBuilder.java | 33 + .../v1/DeleteOperationMetadata.java | 432 ++--- .../v1/DeleteOperationMetadataOrBuilder.java | 38 +- .../v1/EntityReconciliationJob.java | 1345 +++++-------- .../v1/EntityReconciliationJobName.java | 0 .../v1/EntityReconciliationJobOrBuilder.java | 160 +- .../v1/GetEntityReconciliationJobRequest.java | 469 ++--- ...tityReconciliationJobRequestOrBuilder.java | 33 + .../v1/InputConfig.java | 844 +++----- .../v1/InputConfigOrBuilder.java | 83 +- .../enterpriseknowledgegraph/v1/JobState.java | 133 +- .../v1/JobStateProto.java | 52 + .../ListEntityReconciliationJobsRequest.java | 664 +++---- ...ityReconciliationJobsRequestOrBuilder.java | 56 +- .../ListEntityReconciliationJobsResponse.java | 738 +++---- ...tyReconciliationJobsResponseOrBuilder.java | 69 +- .../v1/LocationName.java | 0 .../v1/LookupPublicKgRequest.java | 1081 +++++++++++ .../v1/LookupPublicKgRequestOrBuilder.java | 119 ++ .../v1/LookupPublicKgResponse.java | 1113 +++++++++++ .../v1/LookupPublicKgResponseOrBuilder.java | 93 + .../v1/LookupRequest.java | 1081 +++++++++++ .../v1/LookupRequestOrBuilder.java | 119 ++ .../v1/LookupResponse.java | 1113 +++++++++++ .../v1/LookupResponseOrBuilder.java | 93 + .../v1/OperationMetadataProto.java | 67 + .../v1/OutputConfig.java | 330 ++-- .../v1/OutputConfigOrBuilder.java | 27 +- .../v1/PublicKnowledgeGraphEntityName.java | 241 +++ .../v1/ReconConfig.java | 1702 ++++++----------- .../v1/ReconConfigOrBuilder.java | 101 +- .../v1/SearchPublicKgRequest.java | 1502 +++++++++++++++ .../v1/SearchPublicKgRequestOrBuilder.java | 174 ++ .../v1/SearchPublicKgResponse.java | 1113 +++++++++++ .../v1/SearchPublicKgResponseOrBuilder.java | 93 + .../v1/SearchRequest.java | 1502 +++++++++++++++ .../v1/SearchRequestOrBuilder.java | 174 ++ .../v1/SearchResponse.java | 1113 +++++++++++ .../v1/SearchResponseOrBuilder.java | 93 + .../v1/ServiceProto.java | 534 ++++++ .../v1/job_state.proto | 0 .../v1/operation_metadata.proto | 0 .../enterpriseknowledgegraph/v1/service.proto | 200 +- 83 files changed, 18879 insertions(+), 8678 deletions(-) delete mode 100644 java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java delete mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java (66%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java (84%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json (75%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java (73%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java (82%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java (70%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java (65%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java (61%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java (61%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java (65%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java (60%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java (63%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java (51%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java (67%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java (74%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java (60%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java (52%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java (51%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java (61%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java (54%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java (64%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java (67%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java (52%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java (63%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java (51%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java (72%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java (60%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java (59%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java (56%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java (50%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java (100%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java (66%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java (52%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java (65%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java (58%) create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java create mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/proto/google/cloud/enterpriseknowledgegraph/v1/job_state.proto (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/proto/google/cloud/enterpriseknowledgegraph/v1/operation_metadata.proto (100%) rename {java-enterpriseknowledgegraph => owl-bot-staging/java-enterpriseknowledgegraph/v1}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/proto/google/cloud/enterpriseknowledgegraph/v1/service.proto (62%) diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java deleted file mode 100644 index 2d1fec6f3770..000000000000 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java +++ /dev/null @@ -1,941 +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.enterpriseknowledgegraph.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * APIs for enterprise knowledge graph product.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/enterpriseknowledgegraph/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class EnterpriseKnowledgeGraphServiceGrpc { - - private EnterpriseKnowledgeGraphServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getCreateEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEntityReconciliationJob", - requestType = - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getCreateEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getCreateEntityReconciliationJobMethod; - if ((getCreateEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) - == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getCreateEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) - == null) { - EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod = - getCreateEntityReconciliationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1 - .CreateEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance())) - .setSchemaDescriptor( - new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( - "CreateEntityReconciliationJob")) - .build(); - } - } - } - return getCreateEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getGetEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEntityReconciliationJob", - requestType = - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getGetEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getGetEntityReconciliationJobMethod; - if ((getGetEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) - == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getGetEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) - == null) { - EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod = - getGetEntityReconciliationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1 - .GetEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance())) - .setSchemaDescriptor( - new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( - "GetEntityReconciliationJob")) - .build(); - } - } - } - return getGetEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> - getListEntityReconciliationJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEntityReconciliationJobs", - requestType = - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, - responseType = - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> - getListEntityReconciliationJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> - getListEntityReconciliationJobsMethod; - if ((getListEntityReconciliationJobsMethod = - EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) - == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getListEntityReconciliationJobsMethod = - EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) - == null) { - EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod = - getListEntityReconciliationJobsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListEntityReconciliationJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( - "ListEntityReconciliationJobs")) - .build(); - } - } - } - return getListEntityReconciliationJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, - com.google.protobuf.Empty> - getCancelEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelEntityReconciliationJob", - requestType = - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, - com.google.protobuf.Empty> - getCancelEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, - com.google.protobuf.Empty> - getCancelEntityReconciliationJobMethod; - if ((getCancelEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) - == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getCancelEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) - == null) { - EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod = - getCancelEntityReconciliationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CancelEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1 - .CancelEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( - "CancelEntityReconciliationJob")) - .build(); - } - } - } - return getCancelEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, - com.google.protobuf.Empty> - getDeleteEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEntityReconciliationJob", - requestType = - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, - com.google.protobuf.Empty> - getDeleteEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, - com.google.protobuf.Empty> - getDeleteEntityReconciliationJobMethod; - if ((getDeleteEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) - == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getDeleteEntityReconciliationJobMethod = - EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) - == null) { - EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod = - getDeleteEntityReconciliationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1 - .DeleteEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( - "DeleteEntityReconciliationJob")) - .build(); - } - } - } - return getDeleteEntityReconciliationJobMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static EnterpriseKnowledgeGraphServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnterpriseKnowledgeGraphServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); - } - }; - return EnterpriseKnowledgeGraphServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EnterpriseKnowledgeGraphServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnterpriseKnowledgeGraphServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); - } - }; - return EnterpriseKnowledgeGraphServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static EnterpriseKnowledgeGraphServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnterpriseKnowledgeGraphServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); - } - }; - return EnterpriseKnowledgeGraphServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public abstract static class EnterpriseKnowledgeGraphServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public void createEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEntityReconciliationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public void getEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEntityReconciliationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public void listEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntityReconciliationJobsMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public void cancelEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelEntityReconciliationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public void deleteEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEntityReconciliationJobMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1 - .CreateEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( - this, METHODID_CREATE_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getGetEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1 - .GetEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( - this, METHODID_GET_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getListEntityReconciliationJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsRequest, - com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsResponse>( - this, METHODID_LIST_ENTITY_RECONCILIATION_JOBS))) - .addMethod( - getCancelEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1 - .CancelEntityReconciliationJobRequest, - com.google.protobuf.Empty>(this, METHODID_CANCEL_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getDeleteEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1 - .DeleteEntityReconciliationJobRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ENTITY_RECONCILIATION_JOB))) - .build(); - } - } - - /** - * - * - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static final class EnterpriseKnowledgeGraphServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private EnterpriseKnowledgeGraphServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnterpriseKnowledgeGraphServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public void createEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public void getEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public void listEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public void cancelEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public void deleteEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static final class EnterpriseKnowledgeGraphServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private EnterpriseKnowledgeGraphServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnterpriseKnowledgeGraphServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - createEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - listEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntityReconciliationJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public com.google.protobuf.Empty cancelEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public com.google.protobuf.Empty deleteEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEntityReconciliationJobMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static final class EnterpriseKnowledgeGraphServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EnterpriseKnowledgeGraphServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnterpriseKnowledgeGraphServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - createEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - getEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> - listEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_CREATE_ENTITY_RECONCILIATION_JOB = 0; - private static final int METHODID_GET_ENTITY_RECONCILIATION_JOB = 1; - private static final int METHODID_LIST_ENTITY_RECONCILIATION_JOBS = 2; - private static final int METHODID_CANCEL_ENTITY_RECONCILIATION_JOB = 3; - private static final int METHODID_DELETE_ENTITY_RECONCILIATION_JOB = 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 EnterpriseKnowledgeGraphServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EnterpriseKnowledgeGraphServiceImplBase 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_ENTITY_RECONCILIATION_JOB: - serviceImpl.createEntityReconciliationJob( - (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>) - responseObserver); - break; - case METHODID_GET_ENTITY_RECONCILIATION_JOB: - serviceImpl.getEntityReconciliationJob( - (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>) - responseObserver); - break; - case METHODID_LIST_ENTITY_RECONCILIATION_JOBS: - serviceImpl.listEntityReconciliationJobs( - (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsResponse>) - responseObserver); - break; - case METHODID_CANCEL_ENTITY_RECONCILIATION_JOB: - serviceImpl.cancelEntityReconciliationJob( - (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ENTITY_RECONCILIATION_JOB: - serviceImpl.deleteEntityReconciliationJob( - (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) - 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 EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("EnterpriseKnowledgeGraphService"); - } - } - - private static final class EnterpriseKnowledgeGraphServiceFileDescriptorSupplier - extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier { - EnterpriseKnowledgeGraphServiceFileDescriptorSupplier() {} - } - - private static final class EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier - extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier(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 (EnterpriseKnowledgeGraphServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor( - new EnterpriseKnowledgeGraphServiceFileDescriptorSupplier()) - .addMethod(getCreateEntityReconciliationJobMethod()) - .addMethod(getGetEntityReconciliationJobMethod()) - .addMethod(getListEntityReconciliationJobsMethod()) - .addMethod(getCancelEntityReconciliationJobMethod()) - .addMethod(getDeleteEntityReconciliationJobMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java deleted file mode 100644 index e30d164e5336..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java +++ /dev/null @@ -1,38 +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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface AffinityClusteringConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of iterations to perform. Default value is 1.
-   * 
- * - * int64 compression_round_count = 1; - * - * @return The compressionRoundCount. - */ - long getCompressionRoundCount(); -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java deleted file mode 100644 index 90687059d0e7..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java +++ /dev/null @@ -1,79 +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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface BigQueryInputConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Format is `projects/*/datasets/*/tables/*`.
-   * 
- * - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bigqueryTable. - */ - java.lang.String getBigqueryTable(); - /** - * - * - *
-   * Required. Format is `projects/*/datasets/*/tables/*`.
-   * 
- * - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for bigqueryTable. - */ - com.google.protobuf.ByteString getBigqueryTableBytes(); - - /** - * - * - *
-   * Required. Schema mapping file
-   * 
- * - * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gcsUri. - */ - java.lang.String getGcsUri(); - /** - * - * - *
-   * Required. Schema mapping file
-   * 
- * - * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gcsUri. - */ - com.google.protobuf.ByteString getGcsUriBytes(); -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index da1422569bdf..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface CancelEntityReconciliationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * - * 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-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java deleted file mode 100644 index 9019eff4a6e6..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java +++ /dev/null @@ -1,38 +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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface ConnectedComponentsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Threshold used for connected components. Default value is 0.85.
-   * 
- * - * float weight_threshold = 1; - * - * @return The weightThreshold. - */ - float getWeightThreshold(); -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index 15aced5c633e..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java +++ /dev/null @@ -1,100 +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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface CreateEntityReconciliationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Location to create the
-   * EntityReconciliationJob in. Format:
-   * `projects/{project}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the Location to create the
-   * EntityReconciliationJob in. Format:
-   * `projects/{project}/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 EntityReconciliationJob to create.
-   * 
- * - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entityReconciliationJob field is set. - */ - boolean hasEntityReconciliationJob(); - /** - * - * - *
-   * Required. The EntityReconciliationJob to create.
-   * 
- * - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entityReconciliationJob. - */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob(); - /** - * - * - *
-   * Required. The EntityReconciliationJob to create.
-   * 
- * - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder - getEntityReconciliationJobOrBuilder(); -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index 5cd5df2c92aa..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface DeleteEntityReconciliationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * - * 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-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index ab00e31032c4..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface GetEntityReconciliationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * - * 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-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java deleted file mode 100644 index 8c987819336b..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java +++ /dev/null @@ -1,63 +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/enterpriseknowledgegraph/v1/job_state.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public final class JobStateProto { - private JobStateProto() {} - - 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 = { - "\n8google/cloud/enterpriseknowledgegraph/" - + "v1/job_state.proto\022(google.cloud.enterpr" - + "iseknowledgegraph.v1*\236\002\n\010JobState\022\031\n\025JOB" - + "_STATE_UNSPECIFIED\020\000\022\025\n\021JOB_STATE_PENDIN" - + "G\020\t\022\025\n\021JOB_STATE_RUNNING\020\001\022\027\n\023JOB_STATE_" - + "SUCCEEDED\020\002\022\024\n\020JOB_STATE_FAILED\020\003\022\027\n\023JOB" - + "_STATE_CANCELLED\020\004\022\"\n\036JOB_STATE_KNOWLEDG" - + "E_EXTRACTION\020\005\022!\n\035JOB_STATE_RECON_PREPRO" - + "CESSING\020\006\022\030\n\024JOB_STATE_CLUSTERING\020\007\022 \n\034J" - + "OB_STATE_EXPORTING_CLUSTERS\020\010B\245\002\n,com.go" - + "ogle.cloud.enterpriseknowledgegraph.v1B\r" - + "JobStateProtoP\001Z`google.golang.org/genpr" - + "oto/googleapis/cloud/enterpriseknowledge" - + "graph/v1;enterpriseknowledgegraph\252\002(Goog" - + "le.Cloud.EnterpriseKnowledgeGraph.V1\312\002(G" - + "oogle\\Cloud\\EnterpriseKnowledgeGraph\\V1\352" - + "\002+Google::Cloud::EnterpriseKnowledgeGrap" - + "h::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java deleted file mode 100644 index a08e9bc12789..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.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/enterpriseknowledgegraph/v1/operation_metadata.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public final class OperationMetadataProto { - private OperationMetadataProto() {} - - 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_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_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/enterpriseknowledgegraph/" - + "v1/operation_metadata.proto\022(google.clou" - + "d.enterpriseknowledgegraph.v1\032\037google/pr" - + "otobuf/timestamp.proto\"\307\002\n\027CommonOperati" - + "onMetadata\022V\n\005state\030\001 \001(\0162G.google.cloud" - + ".enterpriseknowledgegraph.v1.CommonOpera" - + "tionMetadata.State\022/\n\013create_time\030\002 \001(\0132" - + "\032.google.protobuf.Timestamp\022/\n\013update_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"r\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020" - + "\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAIL" - + "ED\020\004\022\r\n\tCANCELLED\020\005\022\013\n\007PENDING\020\006B\256\002\n,com" - + ".google.cloud.enterpriseknowledgegraph.v" - + "1B\026OperationMetadataProtoP\001Z`google.gola" - + "ng.org/genproto/googleapis/cloud/enterpr" - + "iseknowledgegraph/v1;enterpriseknowledge" - + "graph\252\002(Google.Cloud.EnterpriseKnowledge" - + "Graph.V1\312\002(Google\\Cloud\\EnterpriseKnowle" - + "dgeGraph\\V1\352\002+Google::Cloud::EnterpriseK" - + "nowledgeGraph::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor, - new java.lang.String[] { - "State", "CreateTime", "UpdateTime", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java deleted file mode 100644 index 8723850bc046..000000000000 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java +++ /dev/null @@ -1,421 +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/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public final class ServiceProto { - private ServiceProto() {} - - 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_enterpriseknowledgegraph_v1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_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/enterpriseknowledgegraph/" - + "v1/service.proto\022(google.cloud.enterpris" - + "eknowledgegraph.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\0328google/cloud/enterprisekn" - + "owledgegraph/v1/job_state.proto\032Agoogle/" - + "cloud/enterpriseknowledgegraph/v1/operat" - + "ion_metadata.proto\032\033google/protobuf/empt" - + "y.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\"\266\003\n\013InputConfi" - + "g\022]\n\026bigquery_input_configs\030\001 \003(\0132=.goog" - + "le.cloud.enterpriseknowledgegraph.v1.Big" - + "QueryInputConfig\022U\n\013entity_type\030\002 \001(\0162@." - + "google.cloud.enterpriseknowledgegraph.v1" - + ".InputConfig.EntityType\022M\n\036previous_resu" - + "lt_bigquery_table\030\003 \001(\tB%\340A\001\372A\037\n\035bigquer" - + "y.googleapis.com/Table\"\241\001\n\nEntityType\022\033\n" - + "\027ENTITY_TYPE_UNSPECIFIED\020\000\022\016\n\006PEOPLE\020\001\032\002" - + "\010\001\022\025\n\rESTABLISHMENT\020\002\032\002\010\001\022\020\n\010PROPERTY\020\003\032" - + "\002\010\001\022\013\n\007PRODUCT\020\004\022\020\n\014ORGANIZATION\020\005\022\022\n\016LO" - + "CAL_BUSINESS\020\006\022\n\n\006PERSON\020\007\"j\n\023BigQueryIn" - + "putConfig\022=\n\016bigquery_table\030\001 \001(\tB%\340A\002\372A" - + "\037\n\035bigquery.googleapis.com/Table\022\024\n\007gcs_" - + "uri\030\002 \001(\tB\003\340A\002\"N\n\014OutputConfig\022>\n\020bigque" - + "ry_dataset\030\001 \001(\tB$\372A!\n\037bigquery.googleap" - + "is.com/Dataset\"\211\004\n\013ReconConfig\022j\n\033connec" - + "ted_components_config\030\001 \001(\0132C.google.clo" - + "ud.enterpriseknowledgegraph.v1.Connected" - + "ComponentsConfigH\000\022h\n\032affinity_clusterin" - + "g_config\030\002 \001(\0132B.google.cloud.enterprise" - + "knowledgegraph.v1.AffinityClusteringConf" - + "igH\000\022N\n\007options\030\003 \001(\0132=.google.cloud.ent" - + "erpriseknowledgegraph.v1.ReconConfig.Opt" - + "ions\022W\n\014model_config\030\004 \001(\0132A.google.clou" - + "d.enterpriseknowledgegraph.v1.ReconConfi" - + "g.ModelConfig\032.\n\007Options\022#\n\033enable_geoco" - + "ding_separation\030d \001(\010\0326\n\013ModelConfig\022\022\n\n" - + "model_name\030\001 \001(\t\022\023\n\013version_tag\030\002 \001(\tB\023\n" - + "\021clustering_config\"5\n\031ConnectedComponent" - + "sConfig\022\030\n\020weight_threshold\030\001 \001(\002\";\n\030Aff" - + "inityClusteringConfig\022\037\n\027compression_rou" - + "nd_count\030\001 \001(\003\"u\n\027DeleteOperationMetadat" - + "a\022Z\n\017common_metadata\030\001 \001(\0132A.google.clou" - + "d.enterpriseknowledgegraph.v1.CommonOper" - + "ationMetadata\"\352\001\n$CreateEntityReconcilia" - + "tionJobRequest\022W\n\006parent\030\001 \001(\tBG\340A\002\372AA\022?" - + "enterpriseknowledgegraph.googleapis.com/" - + "EntityReconciliationJob\022i\n\031entity_reconc" - + "iliation_job\030\002 \001(\0132A.google.cloud.enterp" - + "riseknowledgegraph.v1.EntityReconciliati" - + "onJobB\003\340A\002\"z\n!GetEntityReconciliationJob" - + "Request\022U\n\004name\030\001 \001(\tBG\340A\002\372AA\n?enterpris" - + "eknowledgegraph.googleapis.com/EntityRec" - + "onciliationJob\"\265\001\n#ListEntityReconciliat" - + "ionJobsRequest\022W\n\006parent\030\001 \001(\tBG\340A\002\372AA\022?" - + "enterpriseknowledgegraph.googleapis.com/" - + "EntityReconciliationJob\022\016\n\006filter\030\002 \001(\t\022" - + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\246" - + "\001\n$ListEntityReconciliationJobsResponse\022" - + "e\n\032entity_reconciliation_jobs\030\001 \003(\0132A.go" - + "ogle.cloud.enterpriseknowledgegraph.v1.E" - + "ntityReconciliationJob\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"}\n$CancelEntityReconciliationJob" - + "Request\022U\n\004name\030\001 \001(\tBG\340A\002\372AA\n?enterpris" - + "eknowledgegraph.googleapis.com/EntityRec" - + "onciliationJob\"}\n$DeleteEntityReconcilia" - + "tionJobRequest\022U\n\004name\030\001 \001(\tBG\340A\002\372AA\n?en" - + "terpriseknowledgegraph.googleapis.com/En" - + "tityReconciliationJob\"\331\005\n\027EntityReconcil" - + "iationJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022P\n\014input_co" - + "nfig\030\002 \001(\01325.google.cloud.enterpriseknow" - + "ledgegraph.v1.InputConfigB\003\340A\002\022R\n\routput" - + "_config\030\003 \001(\01326.google.cloud.enterprisek" - + "nowledgegraph.v1.OutputConfigB\003\340A\002\022F\n\005st" - + "ate\030\004 \001(\01622.google.cloud.enterpriseknowl" - + "edgegraph.v1.JobStateB\003\340A\003\022&\n\005error\030\005 \001(" - + "\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013create_tim" - + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0221\n\010end_time\030\007 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022P\n\014recon_confi" - + "g\030\t \001(\01325.google.cloud.enterpriseknowled" - + "gegraph.v1.ReconConfigB\003\340A\001:\243\001\352A\237\001\n?ente" - + "rpriseknowledgegraph.googleapis.com/Enti" - + "tyReconciliationJob\022\\projects/{project}/" - + "locations/{location}/entityReconciliatio" - + "nJobs/{entity_reconciliation_job}2\373\n\n\037En" - + "terpriseKnowledgeGraphService\022\267\002\n\035Create" - + "EntityReconciliationJob\022N.google.cloud.e" - + "nterpriseknowledgegraph.v1.CreateEntityR" - + "econciliationJobRequest\032A.google.cloud.e" - + "nterpriseknowledgegraph.v1.EntityReconci" - + "liationJob\"\202\001\202\323\344\223\002Y\"\022\022*Sample code: + * + *
{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   List ids = new ArrayList<>();
+   *   LookupResponse response = enterpriseKnowledgeGraphServiceClient.lookup(parent, ids);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param ids Required. The list of entity ids to be used for lookup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LookupResponse lookup(LocationName parent, List ids) { + LookupRequest request = + LookupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllIds(ids) + .build(); + return lookup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the Cloud KG entities with CKG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   List ids = new ArrayList<>();
+   *   LookupResponse response = enterpriseKnowledgeGraphServiceClient.lookup(parent, ids);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param ids Required. The list of entity ids to be used for lookup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LookupResponse lookup(String parent, List ids) { + LookupRequest request = LookupRequest.newBuilder().setParent(parent).addAllIds(ids).build(); + return lookup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the Cloud KG entities with CKG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LookupRequest request =
+   *       LookupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllIds(new ArrayList())
+   *           .addAllLanguages(new ArrayList())
+   *           .build();
+   *   LookupResponse response = enterpriseKnowledgeGraphServiceClient.lookup(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LookupResponse lookup(LookupRequest request) { + return lookupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the Cloud KG entities with CKG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LookupRequest request =
+   *       LookupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllIds(new ArrayList())
+   *           .addAllLanguages(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       enterpriseKnowledgeGraphServiceClient.lookupCallable().futureCall(request);
+   *   // Do something.
+   *   LookupResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable lookupCallable() { + return stub.lookupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the Cloud KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String query = "query107944136";
+   *   SearchResponse response = enterpriseKnowledgeGraphServiceClient.search(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param query Required. The literal query string for search. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchResponse search(LocationName parent, String query) { + SearchRequest request = + SearchRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return search(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the Cloud KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String query = "query107944136";
+   *   SearchResponse response = enterpriseKnowledgeGraphServiceClient.search(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param query Required. The literal query string for search. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchResponse search(String parent, String query) { + SearchRequest request = SearchRequest.newBuilder().setParent(parent).setQuery(query).build(); + return search(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the Cloud KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .addAllLanguages(new ArrayList())
+   *           .addAllTypes(new ArrayList())
+   *           .setLimit(Int32Value.newBuilder().build())
+   *           .build();
+   *   SearchResponse response = enterpriseKnowledgeGraphServiceClient.search(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchResponse search(SearchRequest request) { + return searchCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the Cloud KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .addAllLanguages(new ArrayList())
+   *           .addAllTypes(new ArrayList())
+   *           .setLimit(Int32Value.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       enterpriseKnowledgeGraphServiceClient.searchCallable().futureCall(request);
+   *   // Do something.
+   *   SearchResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable searchCallable() { + return stub.searchCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the public KG entities with public KG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   List ids = new ArrayList<>();
+   *   LookupPublicKgResponse response =
+   *       enterpriseKnowledgeGraphServiceClient.lookupPublicKg(parent, ids);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param ids Required. The list of entity ids to be used for lookup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LookupPublicKgResponse lookupPublicKg(LocationName parent, List ids) { + LookupPublicKgRequest request = + LookupPublicKgRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllIds(ids) + .build(); + return lookupPublicKg(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the public KG entities with public KG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   List ids = new ArrayList<>();
+   *   LookupPublicKgResponse response =
+   *       enterpriseKnowledgeGraphServiceClient.lookupPublicKg(parent, ids);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param ids Required. The list of entity ids to be used for lookup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LookupPublicKgResponse lookupPublicKg(String parent, List ids) { + LookupPublicKgRequest request = + LookupPublicKgRequest.newBuilder().setParent(parent).addAllIds(ids).build(); + return lookupPublicKg(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the public KG entities with public KG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LookupPublicKgRequest request =
+   *       LookupPublicKgRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllIds(new ArrayList())
+   *           .addAllLanguages(new ArrayList())
+   *           .build();
+   *   LookupPublicKgResponse response =
+   *       enterpriseKnowledgeGraphServiceClient.lookupPublicKg(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LookupPublicKgResponse lookupPublicKg(LookupPublicKgRequest request) { + return lookupPublicKgCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finds the public KG entities with public KG ID(s). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LookupPublicKgRequest request =
+   *       LookupPublicKgRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllIds(new ArrayList())
+   *           .addAllLanguages(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       enterpriseKnowledgeGraphServiceClient.lookupPublicKgCallable().futureCall(request);
+   *   // Do something.
+   *   LookupPublicKgResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + lookupPublicKgCallable() { + return stub.lookupPublicKgCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the public KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String query = "query107944136";
+   *   SearchPublicKgResponse response =
+   *       enterpriseKnowledgeGraphServiceClient.searchPublicKg(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param query Required. The literal query string for search. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchPublicKgResponse searchPublicKg(LocationName parent, String query) { + SearchPublicKgRequest request = + SearchPublicKgRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchPublicKg(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the public KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String query = "query107944136";
+   *   SearchPublicKgResponse response =
+   *       enterpriseKnowledgeGraphServiceClient.searchPublicKg(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The name of the Entity's parent resource. Format: + * `projects/{project}/locations/{location}` + * @param query Required. The literal query string for search. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchPublicKgResponse searchPublicKg(String parent, String query) { + SearchPublicKgRequest request = + SearchPublicKgRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchPublicKg(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the public KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   SearchPublicKgRequest request =
+   *       SearchPublicKgRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .addAllLanguages(new ArrayList())
+   *           .addAllTypes(new ArrayList())
+   *           .setLimit(Int32Value.newBuilder().build())
+   *           .build();
+   *   SearchPublicKgResponse response =
+   *       enterpriseKnowledgeGraphServiceClient.searchPublicKg(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchPublicKgResponse searchPublicKg(SearchPublicKgRequest request) { + return searchPublicKgCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches the public KG entities with entity name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient =
+   *     EnterpriseKnowledgeGraphServiceClient.create()) {
+   *   SearchPublicKgRequest request =
+   *       SearchPublicKgRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .addAllLanguages(new ArrayList())
+   *           .addAllTypes(new ArrayList())
+   *           .setLimit(Int32Value.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       enterpriseKnowledgeGraphServiceClient.searchPublicKgCallable().futureCall(request);
+   *   // Do something.
+   *   SearchPublicKgResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + searchPublicKgCallable() { + return stub.searchPublicKgCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java similarity index 84% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java index 4757a56cd8ba..f35bdecb66cf 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.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.enterpriseknowledgegraph.v1.stub.EnterpriseKnowledgeGraphServiceStubSettings; @@ -117,6 +118,28 @@ public class EnterpriseKnowledgeGraphServiceSettings .deleteEntityReconciliationJobSettings(); } + /** Returns the object with the settings used for calls to lookup. */ + public UnaryCallSettings lookupSettings() { + return ((EnterpriseKnowledgeGraphServiceStubSettings) getStubSettings()).lookupSettings(); + } + + /** Returns the object with the settings used for calls to search. */ + public UnaryCallSettings searchSettings() { + return ((EnterpriseKnowledgeGraphServiceStubSettings) getStubSettings()).searchSettings(); + } + + /** Returns the object with the settings used for calls to lookupPublicKg. */ + public UnaryCallSettings lookupPublicKgSettings() { + return ((EnterpriseKnowledgeGraphServiceStubSettings) getStubSettings()) + .lookupPublicKgSettings(); + } + + /** Returns the object with the settings used for calls to searchPublicKg. */ + public UnaryCallSettings searchPublicKgSettings() { + return ((EnterpriseKnowledgeGraphServiceStubSettings) getStubSettings()) + .searchPublicKgSettings(); + } + public static final EnterpriseKnowledgeGraphServiceSettings create( EnterpriseKnowledgeGraphServiceStubSettings stub) throws IOException { return new EnterpriseKnowledgeGraphServiceSettings.Builder(stub.toBuilder()).build(); @@ -266,6 +289,28 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteEntityReconciliationJobSettings(); } + /** Returns the builder for the settings used for calls to lookup. */ + public UnaryCallSettings.Builder lookupSettings() { + return getStubSettingsBuilder().lookupSettings(); + } + + /** Returns the builder for the settings used for calls to search. */ + public UnaryCallSettings.Builder searchSettings() { + return getStubSettingsBuilder().searchSettings(); + } + + /** Returns the builder for the settings used for calls to lookupPublicKg. */ + public UnaryCallSettings.Builder + lookupPublicKgSettings() { + return getStubSettingsBuilder().lookupPublicKgSettings(); + } + + /** Returns the builder for the settings used for calls to searchPublicKg. */ + public UnaryCallSettings.Builder + searchPublicKgSettings() { + return getStubSettingsBuilder().searchPublicKgSettings(); + } + @Override public EnterpriseKnowledgeGraphServiceSettings build() throws IOException { return new EnterpriseKnowledgeGraphServiceSettings(this); diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json similarity index 75% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json index 904cfd605df1..07231c453995 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json @@ -24,6 +24,18 @@ }, "ListEntityReconciliationJobs": { "methods": ["listEntityReconciliationJobs", "listEntityReconciliationJobs", "listEntityReconciliationJobs", "listEntityReconciliationJobsPagedCallable", "listEntityReconciliationJobsCallable"] + }, + "Lookup": { + "methods": ["lookup", "lookup", "lookup", "lookupCallable"] + }, + "LookupPublicKg": { + "methods": ["lookupPublicKg", "lookupPublicKg", "lookupPublicKg", "lookupPublicKgCallable"] + }, + "Search": { + "methods": ["search", "search", "search", "searchCallable"] + }, + "SearchPublicKg": { + "methods": ["searchPublicKg", "searchPublicKg", "searchPublicKg", "searchPublicKgCallable"] } } } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java similarity index 100% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java similarity index 73% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java index 64123ccd3851..9447f28d39f9 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java @@ -27,6 +27,14 @@ import com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -76,6 +84,22 @@ public abstract class EnterpriseKnowledgeGraphServiceStub implements BackgroundR "Not implemented: deleteEntityReconciliationJobCallable()"); } + public UnaryCallable lookupCallable() { + throw new UnsupportedOperationException("Not implemented: lookupCallable()"); + } + + public UnaryCallable searchCallable() { + throw new UnsupportedOperationException("Not implemented: searchCallable()"); + } + + public UnaryCallable lookupPublicKgCallable() { + throw new UnsupportedOperationException("Not implemented: lookupPublicKgCallable()"); + } + + public UnaryCallable searchPublicKgCallable() { + throw new UnsupportedOperationException("Not implemented: searchPublicKgCallable()"); + } + @Override public abstract void close(); } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java similarity index 82% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java index b612962ae44b..e32ccf4f6a34 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java @@ -50,6 +50,14 @@ import com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -120,6 +128,12 @@ public class EnterpriseKnowledgeGraphServiceStubSettings cancelEntityReconciliationJobSettings; private final UnaryCallSettings deleteEntityReconciliationJobSettings; + private final UnaryCallSettings lookupSettings; + private final UnaryCallSettings searchSettings; + private final UnaryCallSettings + lookupPublicKgSettings; + private final UnaryCallSettings + searchPublicKgSettings; private static final PagedListDescriptor< ListEntityReconciliationJobsRequest, @@ -235,6 +249,26 @@ public ApiFuture getFuturePagedRespon return deleteEntityReconciliationJobSettings; } + /** Returns the object with the settings used for calls to lookup. */ + public UnaryCallSettings lookupSettings() { + return lookupSettings; + } + + /** Returns the object with the settings used for calls to search. */ + public UnaryCallSettings searchSettings() { + return searchSettings; + } + + /** Returns the object with the settings used for calls to lookupPublicKg. */ + public UnaryCallSettings lookupPublicKgSettings() { + return lookupPublicKgSettings; + } + + /** Returns the object with the settings used for calls to searchPublicKg. */ + public UnaryCallSettings searchPublicKgSettings() { + return searchPublicKgSettings; + } + public EnterpriseKnowledgeGraphServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -354,6 +388,10 @@ protected EnterpriseKnowledgeGraphServiceStubSettings(Builder settingsBuilder) settingsBuilder.cancelEntityReconciliationJobSettings().build(); deleteEntityReconciliationJobSettings = settingsBuilder.deleteEntityReconciliationJobSettings().build(); + lookupSettings = settingsBuilder.lookupSettings().build(); + searchSettings = settingsBuilder.searchSettings().build(); + lookupPublicKgSettings = settingsBuilder.lookupPublicKgSettings().build(); + searchPublicKgSettings = settingsBuilder.searchPublicKgSettings().build(); } /** Builder for EnterpriseKnowledgeGraphServiceStubSettings. */ @@ -375,6 +413,12 @@ public static class Builder cancelEntityReconciliationJobSettings; private final UnaryCallSettings.Builder deleteEntityReconciliationJobSettings; + private final UnaryCallSettings.Builder lookupSettings; + private final UnaryCallSettings.Builder searchSettings; + private final UnaryCallSettings.Builder + lookupPublicKgSettings; + private final UnaryCallSettings.Builder + searchPublicKgSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -386,6 +430,7 @@ public static class Builder definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -413,6 +458,8 @@ public static class Builder .setTotalTimeout(Duration.ofMillis(60000L)) .build(); definitions.put("retry_policy_0_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -429,6 +476,10 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(LIST_ENTITY_RECONCILIATION_JOBS_PAGE_STR_FACT); cancelEntityReconciliationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteEntityReconciliationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + lookupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + searchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + lookupPublicKgSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + searchPublicKgSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -436,7 +487,11 @@ protected Builder(ClientContext clientContext) { getEntityReconciliationJobSettings, listEntityReconciliationJobsSettings, cancelEntityReconciliationJobSettings, - deleteEntityReconciliationJobSettings); + deleteEntityReconciliationJobSettings, + lookupSettings, + searchSettings, + lookupPublicKgSettings, + searchPublicKgSettings); initDefaults(this); } @@ -452,6 +507,10 @@ protected Builder(EnterpriseKnowledgeGraphServiceStubSettings settings) { settings.cancelEntityReconciliationJobSettings.toBuilder(); deleteEntityReconciliationJobSettings = settings.deleteEntityReconciliationJobSettings.toBuilder(); + lookupSettings = settings.lookupSettings.toBuilder(); + searchSettings = settings.searchSettings.toBuilder(); + lookupPublicKgSettings = settings.lookupPublicKgSettings.toBuilder(); + searchPublicKgSettings = settings.searchPublicKgSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -459,7 +518,11 @@ protected Builder(EnterpriseKnowledgeGraphServiceStubSettings settings) { getEntityReconciliationJobSettings, listEntityReconciliationJobsSettings, cancelEntityReconciliationJobSettings, - deleteEntityReconciliationJobSettings); + deleteEntityReconciliationJobSettings, + lookupSettings, + searchSettings, + lookupPublicKgSettings, + searchPublicKgSettings); } private static Builder createDefault() { @@ -514,6 +577,26 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .lookupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .lookupPublicKgSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchPublicKgSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -565,6 +648,28 @@ public Builder applyToAllUnaryMethods( return deleteEntityReconciliationJobSettings; } + /** Returns the builder for the settings used for calls to lookup. */ + public UnaryCallSettings.Builder lookupSettings() { + return lookupSettings; + } + + /** Returns the builder for the settings used for calls to search. */ + public UnaryCallSettings.Builder searchSettings() { + return searchSettings; + } + + /** Returns the builder for the settings used for calls to lookupPublicKg. */ + public UnaryCallSettings.Builder + lookupPublicKgSettings() { + return lookupPublicKgSettings; + } + + /** Returns the builder for the settings used for calls to searchPublicKg. */ + public UnaryCallSettings.Builder + searchPublicKgSettings() { + return searchPublicKgSettings; + } + @Override public EnterpriseKnowledgeGraphServiceStubSettings build() throws IOException { return new EnterpriseKnowledgeGraphServiceStubSettings(this); diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java similarity index 100% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java similarity index 70% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java index 8cc337906f36..24fdf1ac054e 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java @@ -31,12 +31,21 @@ import com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse; import com.google.common.collect.ImmutableMap; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -111,6 +120,48 @@ public class GrpcEnterpriseKnowledgeGraphServiceStub extends EnterpriseKnowledge .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor lookupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/Lookup") + .setRequestMarshaller(ProtoUtils.marshaller(LookupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LookupResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor searchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/Search") + .setRequestMarshaller(ProtoUtils.marshaller(SearchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + lookupPublicKgMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/LookupPublicKg") + .setRequestMarshaller( + ProtoUtils.marshaller(LookupPublicKgRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(LookupPublicKgResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + searchPublicKgMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/SearchPublicKg") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchPublicKgRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchPublicKgResponse.getDefaultInstance())) + .build(); + private final UnaryCallable createEntityReconciliationJobCallable; private final UnaryCallable @@ -125,6 +176,10 @@ public class GrpcEnterpriseKnowledgeGraphServiceStub extends EnterpriseKnowledge cancelEntityReconciliationJobCallable; private final UnaryCallable deleteEntityReconciliationJobCallable; + private final UnaryCallable lookupCallable; + private final UnaryCallable searchCallable; + private final UnaryCallable lookupPublicKgCallable; + private final UnaryCallable searchPublicKgCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -232,6 +287,48 @@ protected GrpcEnterpriseKnowledgeGraphServiceStub( return params.build(); }) .build(); + GrpcCallSettings lookupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(lookupMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings searchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + lookupPublicKgTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(lookupPublicKgMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + searchPublicKgTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchPublicKgMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); this.createEntityReconciliationJobCallable = callableFactory.createUnaryCallable( @@ -263,6 +360,18 @@ protected GrpcEnterpriseKnowledgeGraphServiceStub( deleteEntityReconciliationJobTransportSettings, settings.deleteEntityReconciliationJobSettings(), clientContext); + this.lookupCallable = + callableFactory.createUnaryCallable( + lookupTransportSettings, settings.lookupSettings(), clientContext); + this.searchCallable = + callableFactory.createUnaryCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + this.lookupPublicKgCallable = + callableFactory.createUnaryCallable( + lookupPublicKgTransportSettings, settings.lookupPublicKgSettings(), clientContext); + this.searchPublicKgCallable = + callableFactory.createUnaryCallable( + searchPublicKgTransportSettings, settings.searchPublicKgSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -309,6 +418,26 @@ public GrpcOperationsStub getOperationsStub() { return deleteEntityReconciliationJobCallable; } + @Override + public UnaryCallable lookupCallable() { + return lookupCallable; + } + + @Override + public UnaryCallable searchCallable() { + return searchCallable; + } + + @Override + public UnaryCallable lookupPublicKgCallable() { + return lookupPublicKgCallable; + } + + @Override + public UnaryCallable searchPublicKgCallable() { + return searchPublicKgCallable; + } + @Override public final void close() { try { diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java similarity index 100% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java similarity index 65% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java index 9d72346f45ba..b03d381986ff 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java @@ -37,6 +37,14 @@ import com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest; import com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest; +import com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -248,6 +256,154 @@ public class HttpJsonEnterpriseKnowledgeGraphServiceStub .build()) .build(); + private static final ApiMethodDescriptor lookupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/Lookup") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/cloudKnowledgeGraphEntities:Lookup", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "ids", request.getIdsList()); + serializer.putQueryParam(fields, "languages", request.getLanguagesList()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LookupResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor searchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/Search") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/cloudKnowledgeGraphEntities:Search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "languages", request.getLanguagesList()); + serializer.putQueryParam(fields, "limit", request.getLimit()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "types", request.getTypesList()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + lookupPublicKgMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/LookupPublicKg") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/publicKnowledgeGraphEntities:Lookup", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "ids", request.getIdsList()); + serializer.putQueryParam( + fields, "languages", request.getLanguagesList()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LookupPublicKgResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchPublicKgMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService/SearchPublicKg") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/publicKnowledgeGraphEntities:Search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "languages", request.getLanguagesList()); + serializer.putQueryParam(fields, "limit", request.getLimit()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "types", request.getTypesList()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchPublicKgResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createEntityReconciliationJobCallable; private final UnaryCallable @@ -262,6 +418,10 @@ public class HttpJsonEnterpriseKnowledgeGraphServiceStub cancelEntityReconciliationJobCallable; private final UnaryCallable deleteEntityReconciliationJobCallable; + private final UnaryCallable lookupCallable; + private final UnaryCallable searchCallable; + private final UnaryCallable lookupPublicKgCallable; + private final UnaryCallable searchPublicKgCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -343,6 +503,28 @@ protected HttpJsonEnterpriseKnowledgeGraphServiceStub( .setMethodDescriptor(deleteEntityReconciliationJobMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings lookupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(lookupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings searchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + lookupPublicKgTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(lookupPublicKgMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + searchPublicKgTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchPublicKgMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.createEntityReconciliationJobCallable = callableFactory.createUnaryCallable( @@ -374,6 +556,18 @@ protected HttpJsonEnterpriseKnowledgeGraphServiceStub( deleteEntityReconciliationJobTransportSettings, settings.deleteEntityReconciliationJobSettings(), clientContext); + this.lookupCallable = + callableFactory.createUnaryCallable( + lookupTransportSettings, settings.lookupSettings(), clientContext); + this.searchCallable = + callableFactory.createUnaryCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + this.lookupPublicKgCallable = + callableFactory.createUnaryCallable( + lookupPublicKgTransportSettings, settings.lookupPublicKgSettings(), clientContext); + this.searchPublicKgCallable = + callableFactory.createUnaryCallable( + searchPublicKgTransportSettings, settings.searchPublicKgSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -387,6 +581,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(listEntityReconciliationJobsMethodDescriptor); methodDescriptors.add(cancelEntityReconciliationJobMethodDescriptor); methodDescriptors.add(deleteEntityReconciliationJobMethodDescriptor); + methodDescriptors.add(lookupMethodDescriptor); + methodDescriptors.add(searchMethodDescriptor); + methodDescriptors.add(lookupPublicKgMethodDescriptor); + methodDescriptors.add(searchPublicKgMethodDescriptor); return methodDescriptors; } @@ -427,6 +625,26 @@ public static List getMethodDescriptors() { return deleteEntityReconciliationJobCallable; } + @Override + public UnaryCallable lookupCallable() { + return lookupCallable; + } + + @Override + public UnaryCallable searchCallable() { + return searchCallable; + } + + @Override + public UnaryCallable lookupPublicKgCallable() { + return lookupPublicKgCallable; + } + + @Override + public UnaryCallable searchPublicKgCallable() { + return searchPublicKgCallable; + } + @Override public final void close() { try { diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java similarity index 61% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java index a1699c3a0f3a..d5a7d7eeda5d 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java @@ -30,9 +30,12 @@ import com.google.cloud.enterpriseknowledgegraph.v1.stub.HttpJsonEnterpriseKnowledgeGraphServiceStub; import com.google.common.collect.Lists; import com.google.protobuf.Empty; +import com.google.protobuf.ListValue; import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; import com.google.rpc.Status; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; @@ -581,4 +584,388 @@ public void deleteEntityReconciliationJobExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void lookupTest() throws Exception { + LookupResponse expectedResponse = + LookupResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + + LookupResponse actualResponse = client.lookup(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void lookupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + client.lookup(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupTest2() throws Exception { + LookupResponse expectedResponse = + LookupResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + List ids = new ArrayList<>(); + + LookupResponse actualResponse = client.lookup(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void lookupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + List ids = new ArrayList<>(); + client.lookup(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTest() throws Exception { + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + + SearchResponse actualResponse = client.search(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + client.search(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTest2() throws Exception { + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String query = "query107944136"; + + SearchResponse actualResponse = client.search(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String query = "query107944136"; + client.search(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupPublicKgTest() throws Exception { + LookupPublicKgResponse expectedResponse = + LookupPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + + LookupPublicKgResponse actualResponse = client.lookupPublicKg(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void lookupPublicKgExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + client.lookupPublicKg(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupPublicKgTest2() throws Exception { + LookupPublicKgResponse expectedResponse = + LookupPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + List ids = new ArrayList<>(); + + LookupPublicKgResponse actualResponse = client.lookupPublicKg(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void lookupPublicKgExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + List ids = new ArrayList<>(); + client.lookupPublicKg(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchPublicKgTest() throws Exception { + SearchPublicKgResponse expectedResponse = + SearchPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + + SearchPublicKgResponse actualResponse = client.searchPublicKg(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchPublicKgExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + client.searchPublicKg(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchPublicKgTest2() throws Exception { + SearchPublicKgResponse expectedResponse = + SearchPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String query = "query107944136"; + + SearchPublicKgResponse actualResponse = client.searchPublicKg(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchPublicKgExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String query = "query107944136"; + client.searchPublicKg(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java similarity index 61% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java index cac945e13df3..8d98394bcbac 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java @@ -28,10 +28,13 @@ import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; +import com.google.protobuf.ListValue; import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.UUID; @@ -531,4 +534,348 @@ public void deleteEntityReconciliationJobExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void lookupTest() throws Exception { + LookupResponse expectedResponse = + LookupResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + + LookupResponse actualResponse = client.lookup(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupRequest actualRequest = ((LookupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(ids, actualRequest.getIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + client.lookup(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupTest2() throws Exception { + LookupResponse expectedResponse = + LookupResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List ids = new ArrayList<>(); + + LookupResponse actualResponse = client.lookup(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupRequest actualRequest = ((LookupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(ids, actualRequest.getIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + String parent = "parent-995424086"; + List ids = new ArrayList<>(); + client.lookup(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTest() throws Exception { + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + + SearchResponse actualResponse = client.search(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchRequest actualRequest = ((SearchRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + client.search(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTest2() throws Exception { + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String query = "query107944136"; + + SearchResponse actualResponse = client.search(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchRequest actualRequest = ((SearchRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + String parent = "parent-995424086"; + String query = "query107944136"; + client.search(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupPublicKgTest() throws Exception { + LookupPublicKgResponse expectedResponse = + LookupPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + + LookupPublicKgResponse actualResponse = client.lookupPublicKg(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupPublicKgRequest actualRequest = ((LookupPublicKgRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(ids, actualRequest.getIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupPublicKgExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List ids = new ArrayList<>(); + client.lookupPublicKg(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupPublicKgTest2() throws Exception { + LookupPublicKgResponse expectedResponse = + LookupPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List ids = new ArrayList<>(); + + LookupPublicKgResponse actualResponse = client.lookupPublicKg(parent, ids); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupPublicKgRequest actualRequest = ((LookupPublicKgRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(ids, actualRequest.getIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupPublicKgExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + String parent = "parent-995424086"; + List ids = new ArrayList<>(); + client.lookupPublicKg(parent, ids); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchPublicKgTest() throws Exception { + SearchPublicKgResponse expectedResponse = + SearchPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + + SearchPublicKgResponse actualResponse = client.searchPublicKg(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchPublicKgRequest actualRequest = ((SearchPublicKgRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchPublicKgExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String query = "query107944136"; + client.searchPublicKg(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchPublicKgTest2() throws Exception { + SearchPublicKgResponse expectedResponse = + SearchPublicKgResponse.newBuilder() + .setContext(Value.newBuilder().setBoolValue(true).build()) + .setType(Value.newBuilder().setBoolValue(true).build()) + .setItemListElement(ListValue.newBuilder().build()) + .build(); + mockEnterpriseKnowledgeGraphService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String query = "query107944136"; + + SearchPublicKgResponse actualResponse = client.searchPublicKg(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnterpriseKnowledgeGraphService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchPublicKgRequest actualRequest = ((SearchPublicKgRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchPublicKgExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnterpriseKnowledgeGraphService.addException(exception); + + try { + String parent = "parent-995424086"; + String query = "query107944136"; + client.searchPublicKg(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java similarity index 100% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java similarity index 65% rename from java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java index 5a00e2efd36c..f5b163b01555 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java @@ -167,4 +167,86 @@ public void deleteEntityReconciliationJob( Exception.class.getName()))); } } + + @Override + public void lookup(LookupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LookupResponse) { + requests.add(request); + responseObserver.onNext(((LookupResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Lookup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LookupResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void search(SearchRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchResponse) { + requests.add(request); + responseObserver.onNext(((SearchResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Search, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void lookupPublicKg( + LookupPublicKgRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LookupPublicKgResponse) { + requests.add(request); + responseObserver.onNext(((LookupPublicKgResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method LookupPublicKg, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LookupPublicKgResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchPublicKg( + SearchPublicKgRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchPublicKgResponse) { + requests.add(request); + responseObserver.onNext(((SearchPublicKgResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SearchPublicKg, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchPublicKgResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java new file mode 100644 index 000000000000..d2002872e871 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java @@ -0,0 +1,1007 @@ +package com.google.cloud.enterpriseknowledgegraph.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * APIs for enterprise knowledge graph product.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/enterpriseknowledgegraph/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EnterpriseKnowledgeGraphServiceGrpc { + + private EnterpriseKnowledgeGraphServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEntityReconciliationJob", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor getCreateEntityReconciliationJobMethod; + if ((getCreateEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getCreateEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod = getCreateEntityReconciliationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("CreateEntityReconciliationJob")) + .build(); + } + } + } + return getCreateEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEntityReconciliationJob", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor getGetEntityReconciliationJobMethod; + if ((getGetEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getGetEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod = getGetEntityReconciliationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("GetEntityReconciliationJob")) + .build(); + } + } + } + return getGetEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getListEntityReconciliationJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEntityReconciliationJobs", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEntityReconciliationJobsMethod() { + io.grpc.MethodDescriptor getListEntityReconciliationJobsMethod; + if ((getListEntityReconciliationJobsMethod = EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getListEntityReconciliationJobsMethod = EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod = getListEntityReconciliationJobsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntityReconciliationJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("ListEntityReconciliationJobs")) + .build(); + } + } + } + return getListEntityReconciliationJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCancelEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelEntityReconciliationJob", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCancelEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor getCancelEntityReconciliationJobMethod; + if ((getCancelEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getCancelEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod = getCancelEntityReconciliationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("CancelEntityReconciliationJob")) + .build(); + } + } + } + return getCancelEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEntityReconciliationJob", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor getDeleteEntityReconciliationJobMethod; + if ((getDeleteEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getDeleteEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod = getDeleteEntityReconciliationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("DeleteEntityReconciliationJob")) + .build(); + } + } + } + return getDeleteEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getLookupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Lookup", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLookupMethod() { + io.grpc.MethodDescriptor getLookupMethod; + if ((getLookupMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getLookupMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod = getLookupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Lookup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("Lookup")) + .build(); + } + } + } + return getLookupMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Search", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchMethod() { + io.grpc.MethodDescriptor getSearchMethod; + if ((getSearchMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getSearchMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod = getSearchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("Search")) + .build(); + } + } + } + return getSearchMethod; + } + + private static volatile io.grpc.MethodDescriptor getLookupPublicKgMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LookupPublicKg", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLookupPublicKgMethod() { + io.grpc.MethodDescriptor getLookupPublicKgMethod; + if ((getLookupPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getLookupPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod = getLookupPublicKgMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupPublicKg")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("LookupPublicKg")) + .build(); + } + } + } + return getLookupPublicKgMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchPublicKgMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchPublicKg", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchPublicKgMethod() { + io.grpc.MethodDescriptor getSearchPublicKgMethod; + if ((getSearchPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getSearchPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod = getSearchPublicKgMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchPublicKg")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("SearchPublicKg")) + .build(); + } + } + } + return getSearchPublicKgMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static EnterpriseKnowledgeGraphServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnterpriseKnowledgeGraphServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); + } + }; + return EnterpriseKnowledgeGraphServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EnterpriseKnowledgeGraphServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnterpriseKnowledgeGraphServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); + } + }; + return EnterpriseKnowledgeGraphServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static EnterpriseKnowledgeGraphServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnterpriseKnowledgeGraphServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); + } + }; + return EnterpriseKnowledgeGraphServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static abstract class EnterpriseKnowledgeGraphServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public void createEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEntityReconciliationJobMethod(), responseObserver); + } + + /** + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public void getEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEntityReconciliationJobMethod(), responseObserver); + } + + /** + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public void listEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEntityReconciliationJobsMethod(), responseObserver); + } + + /** + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public void cancelEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelEntityReconciliationJobMethod(), responseObserver); + } + + /** + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public void deleteEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEntityReconciliationJobMethod(), responseObserver); + } + + /** + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public void lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupMethod(), responseObserver); + } + + /** + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public void search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); + } + + /** + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public void lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupPublicKgMethod(), responseObserver); + } + + /** + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public void searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchPublicKgMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( + this, METHODID_CREATE_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getGetEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( + this, METHODID_GET_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getListEntityReconciliationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse>( + this, METHODID_LIST_ENTITY_RECONCILIATION_JOBS))) + .addMethod( + getCancelEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, + com.google.protobuf.Empty>( + this, METHODID_CANCEL_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getDeleteEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getLookupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse>( + this, METHODID_LOOKUP))) + .addMethod( + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse>( + this, METHODID_SEARCH))) + .addMethod( + getLookupPublicKgMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse>( + this, METHODID_LOOKUP_PUBLIC_KG))) + .addMethod( + getSearchPublicKgMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse>( + this, METHODID_SEARCH_PUBLIC_KG))) + .build(); + } + } + + /** + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static final class EnterpriseKnowledgeGraphServiceStub extends io.grpc.stub.AbstractAsyncStub { + private EnterpriseKnowledgeGraphServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnterpriseKnowledgeGraphServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public void createEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public void getEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public void listEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public void cancelEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public void deleteEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public void lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public void search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public void lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupPublicKgMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public void searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchPublicKgMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static final class EnterpriseKnowledgeGraphServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private EnterpriseKnowledgeGraphServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnterpriseKnowledgeGraphServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob createEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse listEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEntityReconciliationJobsMethod(), getCallOptions(), request); + } + + /** + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public com.google.protobuf.Empty cancelEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public com.google.protobuf.Empty deleteEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupMethod(), getCallOptions(), request); + } + + /** + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMethod(), getCallOptions(), request); + } + + /** + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupPublicKgMethod(), getCallOptions(), request); + } + + /** + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchPublicKgMethod(), getCallOptions(), request); + } + } + + /** + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static final class EnterpriseKnowledgeGraphServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private EnterpriseKnowledgeGraphServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnterpriseKnowledgeGraphServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEntityReconciliationJobs( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), request); + } + + /** + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture cancelEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture lookup( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupMethod(), getCallOptions()), request); + } + + /** + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture search( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request); + } + + /** + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture lookupPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupPublicKgMethod(), getCallOptions()), request); + } + + /** + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture searchPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchPublicKgMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ENTITY_RECONCILIATION_JOB = 0; + private static final int METHODID_GET_ENTITY_RECONCILIATION_JOB = 1; + private static final int METHODID_LIST_ENTITY_RECONCILIATION_JOBS = 2; + private static final int METHODID_CANCEL_ENTITY_RECONCILIATION_JOB = 3; + private static final int METHODID_DELETE_ENTITY_RECONCILIATION_JOB = 4; + private static final int METHODID_LOOKUP = 5; + private static final int METHODID_SEARCH = 6; + private static final int METHODID_LOOKUP_PUBLIC_KG = 7; + private static final int METHODID_SEARCH_PUBLIC_KG = 8; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EnterpriseKnowledgeGraphServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EnterpriseKnowledgeGraphServiceImplBase 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_ENTITY_RECONCILIATION_JOB: + serviceImpl.createEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ENTITY_RECONCILIATION_JOB: + serviceImpl.getEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ENTITY_RECONCILIATION_JOBS: + serviceImpl.listEntityReconciliationJobs((com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_ENTITY_RECONCILIATION_JOB: + serviceImpl.cancelEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ENTITY_RECONCILIATION_JOB: + serviceImpl.deleteEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOOKUP: + serviceImpl.lookup((com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH: + serviceImpl.search((com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOOKUP_PUBLIC_KG: + serviceImpl.lookupPublicKg((com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_PUBLIC_KG: + serviceImpl.searchPublicKg((com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) 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 EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EnterpriseKnowledgeGraphService"); + } + } + + private static final class EnterpriseKnowledgeGraphServiceFileDescriptorSupplier + extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier { + EnterpriseKnowledgeGraphServiceFileDescriptorSupplier() {} + } + + private static final class EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier + extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier(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 (EnterpriseKnowledgeGraphServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceFileDescriptorSupplier()) + .addMethod(getCreateEntityReconciliationJobMethod()) + .addMethod(getGetEntityReconciliationJobMethod()) + .addMethod(getListEntityReconciliationJobsMethod()) + .addMethod(getCancelEntityReconciliationJobMethod()) + .addMethod(getDeleteEntityReconciliationJobMethod()) + .addMethod(getLookupMethod()) + .addMethod(getSearchMethod()) + .addMethod(getLookupPublicKgMethod()) + .addMethod(getSearchPublicKgMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java similarity index 60% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java index 950ba0dda5d9..891e6ab0bb5c 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Options for affinity clustering.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig} */ -public final class AffinityClusteringConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AffinityClusteringConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) AffinityClusteringConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AffinityClusteringConfig.newBuilder() to construct. private AffinityClusteringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AffinityClusteringConfig() {} + private AffinityClusteringConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AffinityClusteringConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); } public static final int COMPRESSION_ROUND_COUNT_FIELD_NUMBER = 1; private long compressionRoundCount_; /** - * - * *
    * Number of iterations to perform. Default value is 1.
    * 
* * int64 compression_round_count = 1; - * * @return The compressionRoundCount. */ @java.lang.Override @@ -84,7 +63,6 @@ public long getCompressionRoundCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (compressionRoundCount_ != 0L) { output.writeInt64(1, compressionRoundCount_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (compressionRoundCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, compressionRoundCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, compressionRoundCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,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.enterpriseknowledgegraph.v1.AffinityClusteringConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) obj; - if (getCompressionRoundCount() != other.getCompressionRoundCount()) return false; + if (getCompressionRoundCount() + != other.getCompressionRoundCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,145 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COMPRESSION_ROUND_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompressionRoundCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompressionRoundCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 affinity clustering.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.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(); @@ -289,16 +261,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } @java.lang.Override @@ -312,8 +282,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig bui @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig(this); result.compressionRoundCount_ = compressionRoundCount_; onBuilt(); return result; @@ -323,51 +292,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig 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.enterpriseknowledgegraph.v1.AffinityClusteringConfig) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance()) return this; if (other.getCompressionRoundCount() != 0L) { setCompressionRoundCount(other.getCompressionRoundCount()); } @@ -397,19 +361,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - compressionRoundCount_ = input.readInt64(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + compressionRoundCount_ = input.readInt64(); + + 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) { @@ -420,16 +382,13 @@ public Builder mergeFrom( return this; } - private long compressionRoundCount_; + private long compressionRoundCount_ ; /** - * - * *
      * Number of iterations to perform. Default value is 1.
      * 
* * int64 compression_round_count = 1; - * * @return The compressionRoundCount. */ @java.lang.Override @@ -437,43 +396,37 @@ public long getCompressionRoundCount() { return compressionRoundCount_; } /** - * - * *
      * Number of iterations to perform. Default value is 1.
      * 
* * int64 compression_round_count = 1; - * * @param value The compressionRoundCount to set. * @return This builder for chaining. */ public Builder setCompressionRoundCount(long value) { - + compressionRoundCount_ = value; onChanged(); return this; } /** - * - * *
      * Number of iterations to perform. Default value is 1.
      * 
* * int64 compression_round_count = 1; - * * @return This builder for chaining. */ public Builder clearCompressionRoundCount() { - + compressionRoundCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -483,43 +436,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AffinityClusteringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AffinityClusteringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -531,8 +482,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java new file mode 100644 index 000000000000..3998006851b4 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface AffinityClusteringConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of iterations to perform. Default value is 1.
+   * 
+ * + * int64 compression_round_count = 1; + * @return The compressionRoundCount. + */ + long getCompressionRoundCount(); +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java similarity index 63% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java index f62c62e94c95..ec4619708627 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * The input config for BigQuery tables.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig} */ -public final class BigQueryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) BigQueryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryInputConfig.newBuilder() to construct. private BigQueryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryInputConfig() { bigqueryTable_ = ""; gcsUri_ = ""; @@ -44,43 +26,37 @@ private BigQueryInputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryInputConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); } public static final int BIGQUERY_TABLE_FIELD_NUMBER = 1; private volatile java.lang.Object bigqueryTable_; /** - * - * *
    * Required. Format is `projects/*/datasets/*/tables/*`.
    * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bigqueryTable. */ @java.lang.Override @@ -89,31 +65,29 @@ public java.lang.String getBigqueryTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryTable_ = s; return s; } } /** - * - * *
    * Required. Format is `projects/*/datasets/*/tables/*`.
    * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bigqueryTable. */ @java.lang.Override - public com.google.protobuf.ByteString getBigqueryTableBytes() { + public com.google.protobuf.ByteString + getBigqueryTableBytes() { java.lang.Object ref = bigqueryTable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigqueryTable_ = b; return b; } else { @@ -124,14 +98,11 @@ public com.google.protobuf.ByteString getBigqueryTableBytes() { public static final int GCS_URI_FIELD_NUMBER = 2; private volatile java.lang.Object gcsUri_; /** - * - * *
    * Required. Schema mapping file
    * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gcsUri. */ @java.lang.Override @@ -140,29 +111,29 @@ public java.lang.String getGcsUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsUri_ = s; return s; } } /** - * - * *
    * Required. Schema mapping file
    * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gcsUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsUriBytes() { + public com.google.protobuf.ByteString + getGcsUriBytes() { java.lang.Object ref = gcsUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsUri_ = b; return b; } else { @@ -171,7 +142,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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(bigqueryTable_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bigqueryTable_); } @@ -213,16 +184,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.enterpriseknowledgegraph.v1.BigQueryInputConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) obj; - if (!getBigqueryTable().equals(other.getBigqueryTable())) return false; - if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getBigqueryTable() + .equals(other.getBigqueryTable())) return false; + if (!getGcsUri() + .equals(other.getGcsUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,136 +216,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The input config for BigQuery tables.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.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,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getDefaultInstanceForType() { return com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance(); } @@ -407,8 +371,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig build() @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig(this); result.bigqueryTable_ = bigqueryTable_; result.gcsUri_ = gcsUri_; onBuilt(); @@ -419,50 +382,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig 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.enterpriseknowledgegraph.v1.BigQueryInputConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()) return this; if (!other.getBigqueryTable().isEmpty()) { bigqueryTable_ = other.bigqueryTable_; onChanged(); @@ -497,25 +456,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bigqueryTable_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - gcsUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bigqueryTable_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + gcsUri_ = 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,22 +484,18 @@ public Builder mergeFrom( private java.lang.Object bigqueryTable_ = ""; /** - * - * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bigqueryTable. */ public java.lang.String getBigqueryTable() { java.lang.Object ref = bigqueryTable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryTable_ = s; return s; @@ -552,23 +504,20 @@ public java.lang.String getBigqueryTable() { } } /** - * - * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bigqueryTable. */ - public com.google.protobuf.ByteString getBigqueryTableBytes() { + public com.google.protobuf.ByteString + getBigqueryTableBytes() { java.lang.Object ref = bigqueryTable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigqueryTable_ = b; return b; } else { @@ -576,67 +525,54 @@ public com.google.protobuf.ByteString getBigqueryTableBytes() { } } /** - * - * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bigqueryTable to set. * @return This builder for chaining. */ - public Builder setBigqueryTable(java.lang.String value) { + public Builder setBigqueryTable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bigqueryTable_ = value; onChanged(); return this; } /** - * - * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBigqueryTable() { - + bigqueryTable_ = getDefaultInstance().getBigqueryTable(); onChanged(); return this; } /** - * - * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bigqueryTable to set. * @return This builder for chaining. */ - public Builder setBigqueryTableBytes(com.google.protobuf.ByteString value) { + public Builder setBigqueryTableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigqueryTable_ = value; onChanged(); return this; @@ -644,20 +580,18 @@ public Builder setBigqueryTableBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcsUri_ = ""; /** - * - * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { java.lang.Object ref = gcsUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsUri_ = s; return s; @@ -666,21 +600,20 @@ public java.lang.String getGcsUri() { } } /** - * - * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gcsUri. */ - public com.google.protobuf.ByteString getGcsUriBytes() { + public com.google.protobuf.ByteString + getGcsUriBytes() { java.lang.Object ref = gcsUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsUri_ = b; return b; } else { @@ -688,68 +621,61 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } } /** - * - * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri(java.lang.String value) { + public Builder setGcsUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGcsUri() { - + gcsUri_ = getDefaultInstance().getGcsUri(); onChanged(); return this; } /** - * - * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,43 +685,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +731,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java new file mode 100644 index 000000000000..4a3822751f1c --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface BigQueryInputConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Format is `projects/*/datasets/*/tables/*`.
+   * 
+ * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bigqueryTable. + */ + java.lang.String getBigqueryTable(); + /** + *
+   * Required. Format is `projects/*/datasets/*/tables/*`.
+   * 
+ * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for bigqueryTable. + */ + com.google.protobuf.ByteString + getBigqueryTableBytes(); + + /** + *
+   * Required. Schema mapping file
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + /** + *
+   * Required. Schema mapping file
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString + getGcsUriBytes(); +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java similarity index 51% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java index 171f1f99522a..cdb285116799 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java @@ -1,91 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Request message for CancelEntityReconciliationJob.
  * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} */ -public final class CancelEntityReconciliationJobRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CancelEntityReconciliationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) CancelEntityReconciliationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CancelEntityReconciliationJobRequest.newBuilder() to construct. - private CancelEntityReconciliationJobRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CancelEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CancelEntityReconciliationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CancelEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * - * string name = 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 @@ -94,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 EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * - * string name = 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,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,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_); } @@ -165,17 +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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest)) { + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other = - (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,147 +162,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom( - java.io.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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - 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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CancelEntityReconciliationJob.
    * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - .class, - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.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(); @@ -344,23 +295,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - build() { - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = - buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -368,11 +315,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = - new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest( - this); + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,54 +326,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) - other); + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,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) { @@ -485,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string name = 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; @@ -511,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string name = 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 { @@ -537,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * 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); } @@ -620,45 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1 - .CancelEntityReconciliationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +580,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..c93c37fff386 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface CancelEntityReconciliationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java new file mode 100644 index 000000000000..c776033d07cf --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.enterpriseknowledgegraph.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CloudKnowledgeGraphEntityName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLOUD_KNOWLEDGE_GRAPH_ENTITY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudKnowledgeGraphEntities/{cloud_knowledge_graph_entity}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cloudKnowledgeGraphEntity; + + @Deprecated + protected CloudKnowledgeGraphEntityName() { + project = null; + location = null; + cloudKnowledgeGraphEntity = null; + } + + private CloudKnowledgeGraphEntityName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudKnowledgeGraphEntity = Preconditions.checkNotNull(builder.getCloudKnowledgeGraphEntity()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudKnowledgeGraphEntity() { + return cloudKnowledgeGraphEntity; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CloudKnowledgeGraphEntityName of( + String project, String location, String cloudKnowledgeGraphEntity) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudKnowledgeGraphEntity(cloudKnowledgeGraphEntity) + .build(); + } + + public static String format(String project, String location, String cloudKnowledgeGraphEntity) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudKnowledgeGraphEntity(cloudKnowledgeGraphEntity) + .build() + .toString(); + } + + public static CloudKnowledgeGraphEntityName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLOUD_KNOWLEDGE_GRAPH_ENTITY.validatedMatch( + formattedString, + "CloudKnowledgeGraphEntityName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cloud_knowledge_graph_entity")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CloudKnowledgeGraphEntityName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLOUD_KNOWLEDGE_GRAPH_ENTITY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (cloudKnowledgeGraphEntity != null) { + fieldMapBuilder.put("cloud_knowledge_graph_entity", cloudKnowledgeGraphEntity); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLOUD_KNOWLEDGE_GRAPH_ENTITY.instantiate( + "project", + project, + "location", + location, + "cloud_knowledge_graph_entity", + cloudKnowledgeGraphEntity); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + CloudKnowledgeGraphEntityName that = ((CloudKnowledgeGraphEntityName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cloudKnowledgeGraphEntity, that.cloudKnowledgeGraphEntity); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cloudKnowledgeGraphEntity); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/cloudKnowledgeGraphEntities/{cloud_knowledge_graph_entity}. + */ + public static class Builder { + private String project; + private String location; + private String cloudKnowledgeGraphEntity; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudKnowledgeGraphEntity() { + return cloudKnowledgeGraphEntity; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCloudKnowledgeGraphEntity(String cloudKnowledgeGraphEntity) { + this.cloudKnowledgeGraphEntity = cloudKnowledgeGraphEntity; + return this; + } + + private Builder(CloudKnowledgeGraphEntityName cloudKnowledgeGraphEntityName) { + this.project = cloudKnowledgeGraphEntityName.project; + this.location = cloudKnowledgeGraphEntityName.location; + this.cloudKnowledgeGraphEntity = cloudKnowledgeGraphEntityName.cloudKnowledgeGraphEntity; + } + + public CloudKnowledgeGraphEntityName build() { + return new CloudKnowledgeGraphEntityName(this); + } + } +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java similarity index 67% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java index 437157a8a22c..282cbea0c0e9 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.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/enterpriseknowledgegraph/v1/operation_metadata.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * The common metadata for long running operations.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata} */ -public final class CommonOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) CommonOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonOperationMetadata.newBuilder() to construct. private CommonOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonOperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonOperationMetadata(); } @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.enterpriseknowledgegraph.v1.OperationMetadataProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); } /** - * - * *
    * State of the longrunning operation.
    * 
* * Protobuf enum {@code google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -88,8 +66,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Operation is still running.
      * 
@@ -98,8 +74,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * Operation is being cancelled.
      * 
@@ -108,8 +82,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLING(2), /** - * - * *
      * Operation succeeded.
      * 
@@ -118,8 +90,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * Operation failed.
      * 
@@ -128,8 +98,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(4), /** - * - * *
      * Operation is cancelled.
      * 
@@ -138,8 +106,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(5), /** - * - * *
      * Operation is pending not running yet.
      * 
@@ -151,8 +117,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.
      * 
@@ -161,8 +125,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Operation is still running.
      * 
@@ -171,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * Operation is being cancelled.
      * 
@@ -181,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLING_VALUE = 2; /** - * - * *
      * Operation succeeded.
      * 
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * Operation failed.
      * 
@@ -201,8 +157,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; /** - * - * *
      * Operation is cancelled.
      * 
@@ -211,8 +165,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; /** - * - * *
      * Operation is pending not running yet.
      * 
@@ -221,6 +173,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -245,59 +198,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return CANCELLING; - case 3: - return SUCCEEDED; - case 4: - return FAILED; - case 5: - return CANCELLED; - case 6: - return PENDING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return CANCELLING; + case 3: return SUCCEEDED; + case 4: return FAILED; + case 5: return CANCELLED; + case 6: return 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); + } + }; - 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.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.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; @@ -317,52 +264,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * * @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 operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -370,14 +303,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -385,8 +315,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The creation time of the operation.
    * 
@@ -401,14 +329,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -416,14 +341,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -431,8 +353,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The last update time of the operation.
    * 
@@ -445,7 +365,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,11 +376,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State - .STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -479,17 +396,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State - .STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -499,22 +416,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.enterpriseknowledgegraph.v1.CommonOperationMetadata)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other = - (com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) obj; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other = (com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) obj; if (state_ != other.state_) 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 (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -543,138 +461,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 common metadata for long running operations.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.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(); @@ -696,16 +605,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance(); } @java.lang.Override @@ -719,8 +626,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata result = - new com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata(this); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata result = new com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -740,51 +646,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -820,31 +721,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().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) { @@ -857,99 +758,73 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; * @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 operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; * @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 operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; * @return The state. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf( - state_); - return result == null - ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State value) { + public Builder setState(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -957,47 +832,34 @@ public Builder clearState() { 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_; /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1018,15 +880,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1037,8 +898,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1049,7 +908,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1061,8 +920,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1081,8 +938,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1090,13 +945,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 2; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1107,14 +960,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1122,17 +972,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1140,47 +987,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1201,15 +1035,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - 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(); @@ -1220,8 +1053,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1232,7 +1063,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1244,8 +1075,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1264,8 +1093,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1273,13 +1100,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1290,14 +1115,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1305,24 +1127,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1332,43 +1151,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) - private static final com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1380,8 +1197,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java similarity index 74% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java index ab3ae56335ee..3de02f1fd3ce 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java @@ -1,80 +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/enterpriseknowledgegraph/v1/operation_metadata.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface CommonOperationMetadataOrBuilder - extends +public interface CommonOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
@@ -84,32 +54,24 @@ public interface CommonOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java similarity index 60% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java index 8297f02ff5a6..4fd687ed002a 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Options for connected components.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig} */ -public final class ConnectedComponentsConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConnectedComponentsConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) ConnectedComponentsConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConnectedComponentsConfig.newBuilder() to construct. private ConnectedComponentsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConnectedComponentsConfig() {} + private ConnectedComponentsConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConnectedComponentsConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); } public static final int WEIGHT_THRESHOLD_FIELD_NUMBER = 1; private float weightThreshold_; /** - * - * *
    * Threshold used for connected components. Default value is 0.85.
    * 
* * float weight_threshold = 1; - * * @return The weightThreshold. */ @java.lang.Override @@ -84,7 +63,6 @@ public float getWeightThreshold() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(weightThreshold_) != 0) { output.writeFloat(1, weightThreshold_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(weightThreshold_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, weightThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, weightThreshold_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,16 +100,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.enterpriseknowledgegraph.v1.ConnectedComponentsConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) obj; if (java.lang.Float.floatToIntBits(getWeightThreshold()) - != java.lang.Float.floatToIntBits(other.getWeightThreshold())) return false; + != java.lang.Float.floatToIntBits( + other.getWeightThreshold())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -142,145 +122,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getWeightThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getWeightThreshold()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 connected components.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.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(); @@ -290,22 +262,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig build() { - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = - buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -314,8 +283,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig bu @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig(this); result.weightThreshold_ = weightThreshold_; onBuilt(); return result; @@ -325,51 +293,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance()) return this; if (other.getWeightThreshold() != 0F) { setWeightThreshold(other.getWeightThreshold()); } @@ -399,19 +362,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - weightThreshold_ = input.readFloat(); - - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + weightThreshold_ = input.readFloat(); + + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,16 +383,13 @@ public Builder mergeFrom( return this; } - private float weightThreshold_; + private float weightThreshold_ ; /** - * - * *
      * Threshold used for connected components. Default value is 0.85.
      * 
* * float weight_threshold = 1; - * * @return The weightThreshold. */ @java.lang.Override @@ -439,43 +397,37 @@ public float getWeightThreshold() { return weightThreshold_; } /** - * - * *
      * Threshold used for connected components. Default value is 0.85.
      * 
* * float weight_threshold = 1; - * * @param value The weightThreshold to set. * @return This builder for chaining. */ public Builder setWeightThreshold(float value) { - + weightThreshold_ = value; onChanged(); return this; } /** - * - * *
      * Threshold used for connected components. Default value is 0.85.
      * 
* * float weight_threshold = 1; - * * @return This builder for chaining. */ public Builder clearWeightThreshold() { - + weightThreshold_ = 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); } @@ -485,43 +437,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectedComponentsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedComponentsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -533,8 +483,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java new file mode 100644 index 000000000000..c89549ef1935 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface ConnectedComponentsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Threshold used for connected components. Default value is 0.85.
+   * 
+ * + * float weight_threshold = 1; + * @return The weightThreshold. + */ + float getWeightThreshold(); +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java similarity index 52% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java index 4364931a55cd..f2eff630d293 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java @@ -1,91 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Request message for CreateEntityReconciliationJob.
  * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} */ -public final class CreateEntityReconciliationJobRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateEntityReconciliationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) CreateEntityReconciliationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateEntityReconciliationJobRequest.newBuilder() to construct. - private CreateEntityReconciliationJobRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateEntityReconciliationJobRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the Location to create the
    * EntityReconciliationJob in. Format:
    * `projects/{project}/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 @@ -94,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 resource name of the Location to create the
    * EntityReconciliationJob in. Format:
    * `projects/{project}/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 { @@ -129,19 +99,13 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int ENTITY_RECONCILIATION_JOB_FIELD_NUMBER = 2; - private com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - entityReconciliationJob_; + private com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entityReconciliationJob_; /** - * - * *
    * Required. The EntityReconciliationJob to create.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the entityReconciliationJob field is set. */ @java.lang.Override @@ -149,44 +113,30 @@ public boolean hasEntityReconciliationJob() { return entityReconciliationJob_ != null; } /** - * - * *
    * Required. The EntityReconciliationJob to create.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The entityReconciliationJob. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getEntityReconciliationJob() { - return entityReconciliationJob_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() - : entityReconciliationJob_; + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob() { + return entityReconciliationJob_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() : entityReconciliationJob_; } /** - * - * *
    * Required. The EntityReconciliationJob to create.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder - getEntityReconciliationJobOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobOrBuilder() { return getEntityReconciliationJob(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -218,8 +169,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (entityReconciliationJob_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityReconciliationJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEntityReconciliationJob()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,20 +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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest)) { + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other = - (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasEntityReconciliationJob() != other.hasEntityReconciliationJob()) return false; if (hasEntityReconciliationJob()) { - if (!getEntityReconciliationJob().equals(other.getEntityReconciliationJob())) return false; + if (!getEntityReconciliationJob() + .equals(other.getEntityReconciliationJob())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -266,147 +216,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom( - java.io.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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - 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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateEntityReconciliationJob.
    * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - .class, - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.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(); @@ -422,23 +355,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - build() { - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = - buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -446,11 +375,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = - new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest( - this); + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest(this); result.parent_ = parent_; if (entityReconciliationJobBuilder_ == null) { result.entityReconciliationJob_ = entityReconciliationJob_; @@ -465,54 +391,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) - other); + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -546,26 +464,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getEntityReconciliationJobFieldBuilder().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( + getEntityReconciliationJobFieldBuilder().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) { @@ -578,24 +494,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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; @@ -604,25 +516,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 { @@ -630,138 +539,102 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - entityReconciliationJob_; + private com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entityReconciliationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> - entityReconciliationJobBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> entityReconciliationJobBuilder_; /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the entityReconciliationJob field is set. */ public boolean hasEntityReconciliationJob() { return entityReconciliationJobBuilder_ != null || entityReconciliationJob_ != null; } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The entityReconciliationJob. */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getEntityReconciliationJob() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob() { if (entityReconciliationJobBuilder_ == null) { - return entityReconciliationJob_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance() - : entityReconciliationJob_; + return entityReconciliationJob_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() : entityReconciliationJob_; } else { return entityReconciliationJobBuilder_.getMessage(); } } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { + public Builder setEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { if (entityReconciliationJobBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -775,19 +648,14 @@ public Builder setEntityReconciliationJob( return this; } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { if (entityReconciliationJobBuilder_ == null) { entityReconciliationJob_ = builderForValue.build(); onChanged(); @@ -798,25 +666,17 @@ public Builder setEntityReconciliationJob( return this; } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { + public Builder mergeEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { if (entityReconciliationJobBuilder_ == null) { if (entityReconciliationJob_ != null) { entityReconciliationJob_ = - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.newBuilder( - entityReconciliationJob_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.newBuilder(entityReconciliationJob_).mergeFrom(value).buildPartial(); } else { entityReconciliationJob_ = value; } @@ -828,15 +688,11 @@ public Builder mergeEntityReconciliationJob( return this; } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEntityReconciliationJob() { if (entityReconciliationJobBuilder_ == null) { @@ -850,74 +706,55 @@ public Builder clearEntityReconciliationJob() { return this; } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - getEntityReconciliationJobBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder getEntityReconciliationJobBuilder() { + onChanged(); return getEntityReconciliationJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder - getEntityReconciliationJobOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobOrBuilder() { if (entityReconciliationJobBuilder_ != null) { return entityReconciliationJobBuilder_.getMessageOrBuilder(); } else { - return entityReconciliationJob_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance() - : entityReconciliationJob_; + return entityReconciliationJob_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() : entityReconciliationJob_; } } /** - * - * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> getEntityReconciliationJobFieldBuilder() { if (entityReconciliationJobBuilder_ == null) { - entityReconciliationJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( - getEntityReconciliationJob(), getParentForChildren(), isClean()); + entityReconciliationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( + getEntityReconciliationJob(), + getParentForChildren(), + isClean()); entityReconciliationJob_ = null; } return entityReconciliationJobBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,45 +764,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1 - .CreateEntityReconciliationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,8 +810,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..c437208b775b --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface CreateEntityReconciliationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Location to create the
+   * EntityReconciliationJob in. Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The resource name of the Location to create the
+   * EntityReconciliationJob in. Format:
+   * `projects/{project}/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 EntityReconciliationJob to create.
+   * 
+ * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the entityReconciliationJob field is set. + */ + boolean hasEntityReconciliationJob(); + /** + *
+   * Required. The EntityReconciliationJob to create.
+   * 
+ * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The entityReconciliationJob. + */ + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob(); + /** + *
+   * Required. The EntityReconciliationJob to create.
+   * 
+ * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobOrBuilder(); +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java similarity index 51% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java index 7b7c3f2fe1e8..2661a6874d59 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java @@ -1,91 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Request message for DeleteEntityReconciliationJob.
  * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} */ -public final class DeleteEntityReconciliationJobRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteEntityReconciliationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) DeleteEntityReconciliationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteEntityReconciliationJobRequest.newBuilder() to construct. - private DeleteEntityReconciliationJobRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteEntityReconciliationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * - * string name = 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 @@ -94,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 EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * - * string name = 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,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,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_); } @@ -165,17 +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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest)) { + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other = - (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,147 +162,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom( - java.io.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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - 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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteEntityReconciliationJob.
    * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - .class, - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.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(); @@ -344,23 +295,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - build() { - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = - buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -368,11 +315,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = - new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest( - this); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,54 +326,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) - other); + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,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) { @@ -485,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string name = 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; @@ -511,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string name = 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 { @@ -537,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * 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); } @@ -620,45 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1 - .DeleteEntityReconciliationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +580,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..ada398d574bf --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface DeleteEntityReconciliationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * 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-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java similarity index 61% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java index ab7ef3a5a34e..deb22bf27cfb 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java @@ -1,82 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Details of operations that perform deletes of any entities.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata} */ -public final class DeleteOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) DeleteOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteOperationMetadata.newBuilder() to construct. private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeleteOperationMetadata() {} + private DeleteOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteOperationMetadata(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); } public static final int COMMON_METADATA_FIELD_NUMBER = 1; private com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata commonMetadata_; /** - * - * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; * @return Whether the commonMetadata field is set. */ @java.lang.Override @@ -84,41 +62,30 @@ public boolean hasCommonMetadata() { return commonMetadata_ != null; } /** - * - * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; * @return The commonMetadata. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getCommonMetadata() { - return commonMetadata_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() : commonMetadata_; } /** - * - * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder - getCommonMetadataOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder() { return getCommonMetadata(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,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 (commonMetadata_ != null) { output.writeMessage(1, getCommonMetadata()); } @@ -144,7 +112,8 @@ public int getSerializedSize() { size = 0; if (commonMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommonMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -154,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.enterpriseknowledgegraph.v1.DeleteOperationMetadata)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other = - (com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) obj; + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other = (com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) obj; if (hasCommonMetadata() != other.hasCommonMetadata()) return false; if (hasCommonMetadata()) { - if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; + if (!getCommonMetadata() + .equals(other.getCommonMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -187,138 +156,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Details of operations that perform deletes of any entities.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.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(); @@ -332,16 +292,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.getDefaultInstance(); } @java.lang.Override @@ -355,8 +313,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata result = - new com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata(this); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata result = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata(this); if (commonMetadataBuilder_ == null) { result.commonMetadata_ = commonMetadata_; } else { @@ -370,51 +327,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.getDefaultInstance()) return this; if (other.hasCommonMetadata()) { mergeCommonMetadata(other.getCommonMetadata()); } @@ -444,19 +396,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCommonMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCommonMetadataFieldBuilder().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) { @@ -469,60 +421,41 @@ public Builder mergeFrom( private com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata commonMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> - commonMetadataBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> commonMetadataBuilder_; /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; * @return Whether the commonMetadata field is set. */ public boolean hasCommonMetadata() { return commonMetadataBuilder_ != null || commonMetadata_ != null; } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; * @return The commonMetadata. */ - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - getCommonMetadata() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getCommonMetadata() { if (commonMetadataBuilder_ == null) { - return commonMetadata_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - .getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() : commonMetadata_; } else { return commonMetadataBuilder_.getMessage(); } } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ - public Builder setCommonMetadata( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { + public Builder setCommonMetadata(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -536,18 +469,14 @@ public Builder setCommonMetadata( return this; } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ public Builder setCommonMetadata( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder - builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder builderForValue) { if (commonMetadataBuilder_ == null) { commonMetadata_ = builderForValue.build(); onChanged(); @@ -558,24 +487,17 @@ public Builder setCommonMetadata( return this; } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ - public Builder mergeCommonMetadata( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { + public Builder mergeCommonMetadata(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (commonMetadata_ != null) { commonMetadata_ = - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.newBuilder( - commonMetadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.newBuilder(commonMetadata_).mergeFrom(value).buildPartial(); } else { commonMetadata_ = value; } @@ -587,14 +509,11 @@ public Builder mergeCommonMetadata( return this; } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ public Builder clearCommonMetadata() { if (commonMetadataBuilder_ == null) { @@ -608,71 +527,55 @@ public Builder clearCommonMetadata() { return this; } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder - getCommonMetadataBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder getCommonMetadataBuilder() { + onChanged(); return getCommonMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder - getCommonMetadataOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder() { if (commonMetadataBuilder_ != null) { return commonMetadataBuilder_.getMessageOrBuilder(); } else { - return commonMetadata_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata - .getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() : commonMetadata_; } } /** - * - * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> getCommonMetadataFieldBuilder() { if (commonMetadataBuilder_ == null) { - commonMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder>( - getCommonMetadata(), getParentForChildren(), isClean()); + commonMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder>( + getCommonMetadata(), + getParentForChildren(), + isClean()); commonMetadata_ = null; } return commonMetadataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -682,43 +585,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) - private static final com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,8 +631,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java similarity index 54% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java index 8b475d292229..c43036358e67 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java @@ -1,64 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface DeleteOperationMetadataOrBuilder - extends +public interface DeleteOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; * @return Whether the commonMetadata field is set. */ boolean hasCommonMetadata(); /** - * - * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; * @return The commonMetadata. */ com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getCommonMetadata(); /** - * - * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; */ - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder - getCommonMetadataOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder(); } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java similarity index 64% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java index 22f8c49840ab..a7947fcee3cf 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Entity reconciliation job message.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob} */ -public final class EntityReconciliationJob extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityReconciliationJob extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) EntityReconciliationJobOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityReconciliationJob.newBuilder() to construct. private EntityReconciliationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityReconciliationJob() { name_ = ""; state_ = 0; @@ -44,41 +26,37 @@ private EntityReconciliationJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityReconciliationJob(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -87,29 +65,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; } } /** - * - * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,16 +98,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.enterpriseknowledgegraph.v1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input BigQuery tables.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -137,54 +110,37 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input BigQuery tables.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input BigQuery tables.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -192,95 +148,65 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * Output only. The detailed state of the job.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The detailed state of the job.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.JobState getState() { + @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.JobState getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.JobState result = - com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); - return result == null - ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED - : result; + com.google.cloud.enterpriseknowledgegraph.v1.JobState result = com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); + return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED : result; } public static final int ERROR_FIELD_NUMBER = 5; private com.google.rpc.Status error_; /** - * - * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ @java.lang.Override @@ -288,15 +214,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ @java.lang.Override @@ -304,8 +227,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
@@ -321,15 +242,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when the EntityReconciliationJob was 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 @@ -337,15 +254,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when the EntityReconciliationJob was 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 @@ -353,14 +266,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when the EntityReconciliationJob was 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() { @@ -370,17 +280,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -388,17 +294,13 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -406,16 +308,13 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -425,16 +324,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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 @@ -442,16 +337,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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 @@ -459,15 +350,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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() { @@ -477,16 +365,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int RECON_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig reconConfig_; /** - * - * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reconConfig field is set. */ @java.lang.Override @@ -494,43 +377,30 @@ public boolean hasReconConfig() { return reconConfig_ != null; } /** - * - * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The reconConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getReconConfig() { - return reconConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() - : reconConfig_; + return reconConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() : reconConfig_; } /** - * - * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder - getReconConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder getReconConfigOrBuilder() { return getReconConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +412,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -552,9 +423,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(3, getOutputConfig()); } - if (state_ - != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (error_ != null) { @@ -585,30 +454,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputConfig()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } - if (state_ - != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getError()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getEndTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); } if (reconConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getReconConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getReconConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -618,43 +493,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other = - (com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) obj; + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other = (com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) 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 (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) 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 (hasReconConfig() != other.hasReconConfig()) return false; if (hasReconConfig()) { - if (!getReconConfig().equals(other.getReconConfig())) return false; + if (!getReconConfig() + .equals(other.getReconConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -705,138 +587,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Entity reconciliation job message.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.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(); @@ -890,16 +763,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance(); } @java.lang.Override @@ -913,8 +784,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob result = - new com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob(this); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob result = new com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -960,51 +830,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1059,67 +924,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - state_ = input.readEnum(); - - break; - } // case 32 - case 42: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getReconConfigFieldBuilder().getBuilder(), extensionRegistry); - - 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( + getInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 32: { + state_ = input.readEnum(); + + break; + } // case 32 + case 42: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + input.readMessage( + getReconConfigFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -1132,20 +1001,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1154,21 +1021,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1176,61 +1042,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -1238,58 +1097,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.enterpriseknowledgegraph.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -1305,15 +1145,11 @@ public Builder setInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.Input return this; } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder builderForValue) { @@ -1327,24 +1163,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeInputConfig( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig value) { + public Builder mergeInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -1356,15 +1185,11 @@ public Builder mergeInputConfig( return this; } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1378,66 +1203,48 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder - getInputConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input BigQuery tables.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1445,61 +1252,41 @@ public Builder clearInputConfig() { private com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { + public Builder setOutputConfig(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1513,15 +1300,11 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder builderForValue) { @@ -1535,24 +1318,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1564,15 +1340,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1586,66 +1358,48 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1653,75 +1407,51 @@ public Builder clearOutputConfig() { private int state_ = 0; /** - * - * *
      * Output only. The detailed state of the job.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The detailed state of the job.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. The detailed state of the job.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.JobState getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.JobState result = - com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); - return result == null - ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED - : result; + com.google.cloud.enterpriseknowledgegraph.v1.JobState result = com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); + return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The detailed state of the job.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1729,26 +1459,21 @@ public Builder setState(com.google.cloud.enterpriseknowledgegraph.v1.JobState va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The detailed state of the job.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1756,33 +1481,26 @@ public Builder clearState() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1793,8 +1511,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1816,8 +1532,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1825,7 +1539,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1836,8 +1551,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1848,7 +1561,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1860,8 +1574,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1881,8 +1593,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1891,13 +1601,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1909,12 +1617,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1923,14 +1630,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -1938,58 +1645,39 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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) { @@ -2005,17 +1693,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was 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(); @@ -2026,21 +1711,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was 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; } @@ -2052,15 +1733,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was 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) { @@ -2074,64 +1751,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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_; @@ -2139,39 +1800,28 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2182,16 +1832,13 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2207,18 +1854,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2229,22 +1874,19 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2256,16 +1898,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2279,65 +1918,54 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2345,61 +1973,42 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 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. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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) { @@ -2415,18 +2024,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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(); @@ -2437,22 +2043,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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; } @@ -2464,16 +2066,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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) { @@ -2487,67 +2085,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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_; @@ -2555,58 +2137,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig reconConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> - reconConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> reconConfigBuilder_; /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reconConfig field is set. */ public boolean hasReconConfig() { return reconConfigBuilder_ != null || reconConfig_ != null; } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The reconConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getReconConfig() { if (reconConfigBuilder_ == null) { - return reconConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() - : reconConfig_; + return reconConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() : reconConfig_; } else { return reconConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig value) { if (reconConfigBuilder_ == null) { @@ -2622,15 +2185,11 @@ public Builder setReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.Recon return this; } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReconConfig( com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder builderForValue) { @@ -2644,24 +2203,17 @@ public Builder setReconConfig( return this; } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeReconConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig value) { + public Builder mergeReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig value) { if (reconConfigBuilder_ == null) { if (reconConfig_ != null) { reconConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.newBuilder(reconConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.newBuilder(reconConfig_).mergeFrom(value).buildPartial(); } else { reconConfig_ = value; } @@ -2673,15 +2225,11 @@ public Builder mergeReconConfig( return this; } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReconConfig() { if (reconConfigBuilder_ == null) { @@ -2695,73 +2243,55 @@ public Builder clearReconConfig() { return this; } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder - getReconConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder getReconConfigBuilder() { + onChanged(); return getReconConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder - getReconConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder getReconConfigOrBuilder() { if (reconConfigBuilder_ != null) { return reconConfigBuilder_.getMessageOrBuilder(); } else { - return reconConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() - : reconConfig_; + return reconConfig_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() : reconConfig_; } } /** - * - * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> getReconConfigFieldBuilder() { if (reconConfigBuilder_ == null) { - reconConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder>( - getReconConfig(), getParentForChildren(), isClean()); + reconConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder>( + getReconConfig(), + getParentForChildren(), + isClean()); reconConfig_ = null; } return reconConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2771,43 +2301,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) - private static final com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityReconciliationJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityReconciliationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2819,8 +2347,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java similarity index 100% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java similarity index 67% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java index 2e645d2bdc9f..e48173c935d2 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java @@ -1,193 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface EntityReconciliationJobOrBuilder - extends +public interface EntityReconciliationJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Information about the input BigQuery tables.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input BigQuery tables.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input BigQuery tables.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Output only. The detailed state of the job.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The detailed state of the job.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.enterpriseknowledgegraph.v1.JobState getState(); /** - * - * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
@@ -198,166 +131,119 @@ public interface EntityReconciliationJobOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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. Time when the EntityReconciliationJob was most recently
    * 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. Time when the EntityReconciliationJob was most recently
    * 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(); /** - * - * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reconConfig field is set. */ boolean hasReconConfig(); /** - * - * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The reconConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getReconConfig(); /** - * - * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder getReconConfigOrBuilder(); } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java similarity index 52% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java index 3116762153c5..7924b3f52766 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java @@ -1,89 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Request message for GetEntityReconciliationJob.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest} */ -public final class GetEntityReconciliationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEntityReconciliationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) GetEntityReconciliationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEntityReconciliationJobRequest.newBuilder() to construct. - private GetEntityReconciliationJobRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEntityReconciliationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder - .class); + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * - * string name = 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 +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 EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * - * string name = 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,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,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_); } @@ -163,17 +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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest)) { + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other = - (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,146 +162,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom( - java.io.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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - 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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetEntityReconciliationJob.
    * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder - .class); + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.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(); @@ -341,22 +295,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest build() { - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = - buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -364,10 +315,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRe } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = - new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(this); + public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -377,53 +326,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) other); + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -454,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) { @@ -479,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string name = 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; @@ -505,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string name = 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 { @@ -531,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * string 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * - * 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); } @@ -614,45 +534,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1 - .GetEntityReconciliationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +580,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..d3fa303d76af --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface GetEntityReconciliationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * 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-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java similarity index 63% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java index 1e7183d20300..df5a3c52c5f7 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { bigqueryInputConfigs_ = java.util.Collections.emptyList(); entityType_ = 0; @@ -45,33 +27,30 @@ private InputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); } /** - * - * *
    * The type of entities we will support. Currently, we only support people,
    * establishment, property, and product types. If the type is
@@ -80,10 +59,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType}
    */
-  public enum EntityType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EntityType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * The default value.
      * 
@@ -92,8 +70,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ ENTITY_TYPE_UNSPECIFIED(0), /** - * - * *
      * People entity.
      * 
@@ -103,8 +79,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { @java.lang.Deprecated PEOPLE(1), /** - * - * *
      * Establishment entity.
      * 
@@ -114,8 +88,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { @java.lang.Deprecated ESTABLISHMENT(2), /** - * - * *
      * Property entity. e.g. real estate property.
      * 
@@ -125,8 +97,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { @java.lang.Deprecated PROPERTY(3), /** - * - * *
      * Product entity.
      * 
@@ -135,8 +105,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ PRODUCT(4), /** - * - * *
      * Organization entity.
      * 
@@ -145,8 +113,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ ORGANIZATION(5), /** - * - * *
      * Local Business entity.
      * 
@@ -155,8 +121,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ LOCAL_BUSINESS(6), /** - * - * *
      * Person entity.
      * 
@@ -168,8 +132,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value.
      * 
@@ -178,8 +140,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENTITY_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * People entity.
      * 
@@ -188,8 +148,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ @java.lang.Deprecated public static final int PEOPLE_VALUE = 1; /** - * - * *
      * Establishment entity.
      * 
@@ -198,8 +156,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ @java.lang.Deprecated public static final int ESTABLISHMENT_VALUE = 2; /** - * - * *
      * Property entity. e.g. real estate property.
      * 
@@ -208,8 +164,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ @java.lang.Deprecated public static final int PROPERTY_VALUE = 3; /** - * - * *
      * Product entity.
      * 
@@ -218,8 +172,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRODUCT_VALUE = 4; /** - * - * *
      * Organization entity.
      * 
@@ -228,8 +180,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ORGANIZATION_VALUE = 5; /** - * - * *
      * Local Business entity.
      * 
@@ -238,8 +188,6 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCAL_BUSINESS_VALUE = 6; /** - * - * *
      * Person entity.
      * 
@@ -248,6 +196,7 @@ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERSON_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,61 +221,54 @@ public static EntityType valueOf(int value) { */ public static EntityType forNumber(int value) { switch (value) { - case 0: - return ENTITY_TYPE_UNSPECIFIED; - case 1: - return PEOPLE; - case 2: - return ESTABLISHMENT; - case 3: - return PROPERTY; - case 4: - return PRODUCT; - case 5: - return ORGANIZATION; - case 6: - return LOCAL_BUSINESS; - case 7: - return PERSON; - default: - return null; + case 0: return ENTITY_TYPE_UNSPECIFIED; + case 1: return PEOPLE; + case 2: return ESTABLISHMENT; + case 3: return PROPERTY; + case 4: return PRODUCT; + case 5: return ORGANIZATION; + case 6: return LOCAL_BUSINESS; + case 7: return PERSON; + 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< + EntityType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EntityType findValueByNumber(int number) { + return EntityType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EntityType findValueByNumber(int number) { - return EntityType.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.enterpriseknowledgegraph.v1.InputConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDescriptor().getEnumTypes().get(0); } private static final EntityType[] VALUES = values(); - public static EntityType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EntityType 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; @@ -344,142 +286,102 @@ private EntityType(int value) { } public static final int BIGQUERY_INPUT_CONFIGS_FIELD_NUMBER = 1; - private java.util.List - bigqueryInputConfigs_; + private java.util.List bigqueryInputConfigs_; /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ @java.lang.Override - public java.util.List - getBigqueryInputConfigsList() { + public java.util.List getBigqueryInputConfigsList() { return bigqueryInputConfigs_; } /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> + public java.util.List getBigqueryInputConfigsOrBuilderList() { return bigqueryInputConfigs_; } /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ @java.lang.Override public int getBigqueryInputConfigsCount() { return bigqueryInputConfigs_.size(); } /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs(int index) { return bigqueryInputConfigs_.get(index); } /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder - getBigqueryInputConfigsOrBuilder(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder getBigqueryInputConfigsOrBuilder( + int index) { return bigqueryInputConfigs_.get(index); } public static final int ENTITY_TYPE_FIELD_NUMBER = 2; private int entityType_; /** - * - * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * * @return The enum numeric value on the wire for entityType. */ - @java.lang.Override - public int getEntityTypeValue() { + @java.lang.Override public int getEntityTypeValue() { return entityType_; } /** - * - * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * * @return The entityType. */ - @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType() { + @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); - return result == null - ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED - : result; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); + return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED : result; } public static final int PREVIOUS_RESULT_BIGQUERY_TABLE_FIELD_NUMBER = 3; private volatile java.lang.Object previousResultBigqueryTable_; /** - * - * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The previousResultBigqueryTable. */ @java.lang.Override @@ -488,33 +390,31 @@ public java.lang.String getPreviousResultBigqueryTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); previousResultBigqueryTable_ = s; return s; } } /** - * - * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for previousResultBigqueryTable. */ @java.lang.Override - public com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes() { + public com.google.protobuf.ByteString + getPreviousResultBigqueryTableBytes() { java.lang.Object ref = previousResultBigqueryTable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); previousResultBigqueryTable_ = b; return b; } else { @@ -523,7 +423,6 @@ public com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -535,14 +434,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 { for (int i = 0; i < bigqueryInputConfigs_.size(); i++) { output.writeMessage(1, bigqueryInputConfigs_.get(i)); } - if (entityType_ - != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType - .ENTITY_TYPE_UNSPECIFIED - .getNumber()) { + if (entityType_ != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.ENTITY_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, entityType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousResultBigqueryTable_)) { @@ -558,18 +455,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bigqueryInputConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigqueryInputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bigqueryInputConfigs_.get(i)); } - if (entityType_ - != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType - .ENTITY_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entityType_); + if (entityType_ != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.ENTITY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, entityType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousResultBigqueryTable_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(3, previousResultBigqueryTable_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, previousResultBigqueryTable_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -579,18 +473,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.enterpriseknowledgegraph.v1.InputConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) obj; - if (!getBigqueryInputConfigsList().equals(other.getBigqueryInputConfigsList())) return false; + if (!getBigqueryInputConfigsList() + .equals(other.getBigqueryInputConfigsList())) return false; if (entityType_ != other.entityType_) return false; - if (!getPreviousResultBigqueryTable().equals(other.getPreviousResultBigqueryTable())) - return false; + if (!getPreviousResultBigqueryTable() + .equals(other.getPreviousResultBigqueryTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -616,136 +510,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.InputConfig) com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -764,9 +651,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; } @java.lang.Override @@ -785,8 +672,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig build() { @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.InputConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.InputConfig(this); int from_bitField0_ = bitField0_; if (bigqueryInputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -807,39 +693,38 @@ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -847,8 +732,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance()) return this; if (bigqueryInputConfigsBuilder_ == null) { if (!other.bigqueryInputConfigs_.isEmpty()) { if (bigqueryInputConfigs_.isEmpty()) { @@ -867,10 +751,9 @@ public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.InputConfi bigqueryInputConfigsBuilder_ = null; bigqueryInputConfigs_ = other.bigqueryInputConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - bigqueryInputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBigqueryInputConfigsFieldBuilder() - : null; + bigqueryInputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBigqueryInputConfigsFieldBuilder() : null; } else { bigqueryInputConfigsBuilder_.addAllMessages(other.bigqueryInputConfigs_); } @@ -909,39 +792,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig m = - input.readMessage( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.parser(), - extensionRegistry); - if (bigqueryInputConfigsBuilder_ == null) { - ensureBigqueryInputConfigsIsMutable(); - bigqueryInputConfigs_.add(m); - } else { - bigqueryInputConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - entityType_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - previousResultBigqueryTable_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig m = + input.readMessage( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.parser(), + extensionRegistry); + if (bigqueryInputConfigsBuilder_ == null) { + ensureBigqueryInputConfigsIsMutable(); + bigqueryInputConfigs_.add(m); + } else { + bigqueryInputConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + entityType_ = input.readEnum(); + + break; + } // case 16 + case 26: { + previousResultBigqueryTable_ = 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) { @@ -951,41 +830,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - bigqueryInputConfigs_ = java.util.Collections.emptyList(); - + private java.util.List bigqueryInputConfigs_ = + java.util.Collections.emptyList(); private void ensureBigqueryInputConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - bigqueryInputConfigs_ = - new java.util.ArrayList< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig>( - bigqueryInputConfigs_); + bigqueryInputConfigs_ = new java.util.ArrayList(bigqueryInputConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> - bigqueryInputConfigsBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> bigqueryInputConfigsBuilder_; /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public java.util.List - getBigqueryInputConfigsList() { + public java.util.List getBigqueryInputConfigsList() { if (bigqueryInputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(bigqueryInputConfigs_); } else { @@ -993,15 +859,11 @@ private void ensureBigqueryInputConfigsIsMutable() { } } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public int getBigqueryInputConfigsCount() { if (bigqueryInputConfigsBuilder_ == null) { @@ -1011,18 +873,13 @@ public int getBigqueryInputConfigsCount() { } } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs(int index) { if (bigqueryInputConfigsBuilder_ == null) { return bigqueryInputConfigs_.get(index); } else { @@ -1030,15 +887,11 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqu } } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder setBigqueryInputConfigs( int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { @@ -1055,19 +908,14 @@ public Builder setBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder setBigqueryInputConfigs( - int index, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { + int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { if (bigqueryInputConfigsBuilder_ == null) { ensureBigqueryInputConfigsIsMutable(); bigqueryInputConfigs_.set(index, builderForValue.build()); @@ -1078,18 +926,13 @@ public Builder setBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public Builder addBigqueryInputConfigs( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { + public Builder addBigqueryInputConfigs(com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { if (bigqueryInputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1103,15 +946,11 @@ public Builder addBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder addBigqueryInputConfigs( int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { @@ -1128,15 +967,11 @@ public Builder addBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder addBigqueryInputConfigs( com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { @@ -1150,19 +985,14 @@ public Builder addBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder addBigqueryInputConfigs( - int index, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { + int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { if (bigqueryInputConfigsBuilder_ == null) { ensureBigqueryInputConfigsIsMutable(); bigqueryInputConfigs_.add(index, builderForValue.build()); @@ -1173,23 +1003,18 @@ public Builder addBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder addAllBigqueryInputConfigs( - java.lang.Iterable< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig> - values) { + java.lang.Iterable values) { if (bigqueryInputConfigsBuilder_ == null) { ensureBigqueryInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryInputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bigqueryInputConfigs_); onChanged(); } else { bigqueryInputConfigsBuilder_.addAllMessages(values); @@ -1197,15 +1022,11 @@ public Builder addAllBigqueryInputConfigs( return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder clearBigqueryInputConfigs() { if (bigqueryInputConfigsBuilder_ == null) { @@ -1218,15 +1039,11 @@ public Builder clearBigqueryInputConfigs() { return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ public Builder removeBigqueryInputConfigs(int index) { if (bigqueryInputConfigsBuilder_ == null) { @@ -1239,53 +1056,39 @@ public Builder removeBigqueryInputConfigs(int index) { return this; } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder - getBigqueryInputConfigsBuilder(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder getBigqueryInputConfigsBuilder( + int index) { return getBigqueryInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder - getBigqueryInputConfigsOrBuilder(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder getBigqueryInputConfigsOrBuilder( + int index) { if (bigqueryInputConfigsBuilder_ == null) { - return bigqueryInputConfigs_.get(index); - } else { + return bigqueryInputConfigs_.get(index); } else { return bigqueryInputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public java.util.List< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> - getBigqueryInputConfigsOrBuilderList() { + public java.util.List + getBigqueryInputConfigsOrBuilderList() { if (bigqueryInputConfigsBuilder_ != null) { return bigqueryInputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1293,69 +1096,45 @@ public Builder removeBigqueryInputConfigs(int index) { } } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder - addBigqueryInputConfigsBuilder() { - return getBigqueryInputConfigsFieldBuilder() - .addBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig - .getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder addBigqueryInputConfigsBuilder() { + return getBigqueryInputConfigsFieldBuilder().addBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()); } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder - addBigqueryInputConfigsBuilder(int index) { - return getBigqueryInputConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig - .getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder addBigqueryInputConfigsBuilder( + int index) { + return getBigqueryInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()); } /** - * - * *
      * Set of input BigQuery tables.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - public java.util.List - getBigqueryInputConfigsBuilderList() { + public java.util.List + getBigqueryInputConfigsBuilderList() { return getBigqueryInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> getBigqueryInputConfigsFieldBuilder() { if (bigqueryInputConfigsBuilder_ == null) { - bigqueryInputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder>( + bigqueryInputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder>( bigqueryInputConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1367,98 +1146,73 @@ public Builder removeBigqueryInputConfigs(int index) { private int entityType_ = 0; /** - * - * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; * @return The enum numeric value on the wire for entityType. */ - @java.lang.Override - public int getEntityTypeValue() { + @java.lang.Override public int getEntityTypeValue() { return entityType_; } /** - * - * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; * @param value The enum numeric value on the wire for entityType to set. * @return This builder for chaining. */ public Builder setEntityTypeValue(int value) { - + entityType_ = value; onChanged(); return this; } /** - * - * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; * @return The entityType. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); - return result == null - ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED - : result; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); + return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED : result; } /** - * - * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; * @param value The entityType to set. * @return This builder for chaining. */ - public Builder setEntityType( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType value) { + public Builder setEntityType(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType value) { if (value == null) { throw new NullPointerException(); } - + entityType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; * @return This builder for chaining. */ public Builder clearEntityType() { - + entityType_ = 0; onChanged(); return this; @@ -1466,24 +1220,20 @@ public Builder clearEntityType() { private java.lang.Object previousResultBigqueryTable_ = ""; /** - * - * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The previousResultBigqueryTable. */ public java.lang.String getPreviousResultBigqueryTable() { java.lang.Object ref = previousResultBigqueryTable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); previousResultBigqueryTable_ = s; return s; @@ -1492,25 +1242,22 @@ public java.lang.String getPreviousResultBigqueryTable() { } } /** - * - * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for previousResultBigqueryTable. */ - public com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes() { + public com.google.protobuf.ByteString + getPreviousResultBigqueryTableBytes() { java.lang.Object ref = previousResultBigqueryTable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); previousResultBigqueryTable_ = b; return b; } else { @@ -1518,80 +1265,67 @@ public com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes() { } } /** - * - * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The previousResultBigqueryTable to set. * @return This builder for chaining. */ - public Builder setPreviousResultBigqueryTable(java.lang.String value) { + public Builder setPreviousResultBigqueryTable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + previousResultBigqueryTable_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPreviousResultBigqueryTable() { - + previousResultBigqueryTable_ = getDefaultInstance().getPreviousResultBigqueryTable(); onChanged(); return this; } /** - * - * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for previousResultBigqueryTable to set. * @return This builder for chaining. */ - public Builder setPreviousResultBigqueryTableBytes(com.google.protobuf.ByteString value) { + public Builder setPreviousResultBigqueryTableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previousResultBigqueryTable_ = 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); } @@ -1601,12 +1335,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.InputConfig) private static final com.google.cloud.enterpriseknowledgegraph.v1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.InputConfig(); } @@ -1615,27 +1349,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1650,4 +1384,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java similarity index 51% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java index 5dde7c691345..bf5617045764 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java @@ -1,149 +1,96 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - java.util.List + java.util.List getBigqueryInputConfigsList(); /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs( - int index); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs(int index); /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ int getBigqueryInputConfigsCount(); /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - java.util.List< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> + java.util.List getBigqueryInputConfigsOrBuilderList(); /** - * - * *
    * Set of input BigQuery tables.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; */ - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder - getBigqueryInputConfigsOrBuilder(int index); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder getBigqueryInputConfigsOrBuilder( + int index); /** - * - * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * * @return The enum numeric value on the wire for entityType. */ int getEntityTypeValue(); /** - * - * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; - * * @return The entityType. */ com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType(); /** - * - * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The previousResultBigqueryTable. */ java.lang.String getPreviousResultBigqueryTable(); /** - * - * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for previousResultBigqueryTable. */ - com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes(); + com.google.protobuf.ByteString + getPreviousResultBigqueryTableBytes(); } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java similarity index 72% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java index 1bdd7840b623..43d9927c3346 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.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/enterpriseknowledgegraph/v1/job_state.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Describes the state of a job.
  * 
* * Protobuf enum {@code google.cloud.enterpriseknowledgegraph.v1.JobState} */ -public enum JobState implements com.google.protobuf.ProtocolMessageEnum { +public enum JobState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The job state is unspecified.
    * 
@@ -39,8 +21,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_UNSPECIFIED(0), /** - * - * *
    * The service is preparing to run the job.
    * 
@@ -49,8 +29,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_PENDING(9), /** - * - * *
    * The job is in progress.
    * 
@@ -59,8 +37,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_RUNNING(1), /** - * - * *
    * The job completed successfully.
    * 
@@ -69,8 +45,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_SUCCEEDED(2), /** - * - * *
    * The job failed.
    * 
@@ -79,8 +53,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_FAILED(3), /** - * - * *
    * The job has been cancelled.
    * 
@@ -89,8 +61,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_CANCELLED(4), /** - * - * *
    * Entity Recon API: The knowledge extraction job is running.
    * 
@@ -99,8 +69,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_KNOWLEDGE_EXTRACTION(5), /** - * - * *
    * Entity Recon API: The preprocessing job is running.
    * 
@@ -109,8 +77,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_RECON_PREPROCESSING(6), /** - * - * *
    * Entity Recon API: The clustering job is running.
    * 
@@ -119,8 +85,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_CLUSTERING(7), /** - * - * *
    * Entity Recon API: The exporting clusters job is running.
    * 
@@ -132,8 +96,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The job state is unspecified.
    * 
@@ -142,8 +104,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The service is preparing to run the job.
    * 
@@ -152,8 +112,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_PENDING_VALUE = 9; /** - * - * *
    * The job is in progress.
    * 
@@ -162,8 +120,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_RUNNING_VALUE = 1; /** - * - * *
    * The job completed successfully.
    * 
@@ -172,8 +128,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_SUCCEEDED_VALUE = 2; /** - * - * *
    * The job failed.
    * 
@@ -182,8 +136,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_FAILED_VALUE = 3; /** - * - * *
    * The job has been cancelled.
    * 
@@ -192,8 +144,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_CANCELLED_VALUE = 4; /** - * - * *
    * Entity Recon API: The knowledge extraction job is running.
    * 
@@ -202,8 +152,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_KNOWLEDGE_EXTRACTION_VALUE = 5; /** - * - * *
    * Entity Recon API: The preprocessing job is running.
    * 
@@ -212,8 +160,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_RECON_PREPROCESSING_VALUE = 6; /** - * - * *
    * Entity Recon API: The clustering job is running.
    * 
@@ -222,8 +168,6 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_CLUSTERING_VALUE = 7; /** - * - * *
    * Entity Recon API: The exporting clusters job is running.
    * 
@@ -232,6 +176,7 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_EXPORTING_CLUSTERS_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -256,65 +201,56 @@ public static JobState valueOf(int value) { */ public static JobState forNumber(int value) { switch (value) { - case 0: - return JOB_STATE_UNSPECIFIED; - case 9: - return JOB_STATE_PENDING; - case 1: - return JOB_STATE_RUNNING; - case 2: - return JOB_STATE_SUCCEEDED; - case 3: - return JOB_STATE_FAILED; - case 4: - return JOB_STATE_CANCELLED; - case 5: - return JOB_STATE_KNOWLEDGE_EXTRACTION; - case 6: - return JOB_STATE_RECON_PREPROCESSING; - case 7: - return JOB_STATE_CLUSTERING; - case 8: - return JOB_STATE_EXPORTING_CLUSTERS; - default: - return null; + case 0: return JOB_STATE_UNSPECIFIED; + case 9: return JOB_STATE_PENDING; + case 1: return JOB_STATE_RUNNING; + case 2: return JOB_STATE_SUCCEEDED; + case 3: return JOB_STATE_FAILED; + case 4: return JOB_STATE_CANCELLED; + case 5: return JOB_STATE_KNOWLEDGE_EXTRACTION; + case 6: return JOB_STATE_RECON_PREPROCESSING; + case 7: return JOB_STATE_CLUSTERING; + case 8: return JOB_STATE_EXPORTING_CLUSTERS; + 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< + JobState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobState findValueByNumber(int number) { + return JobState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JobState findValueByNumber(int number) { - return JobState.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.enterpriseknowledgegraph.v1.JobStateProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.JobStateProto.getDescriptor().getEnumTypes().get(0); } private static final JobState[] VALUES = values(); - public static JobState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static JobState 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; @@ -330,3 +266,4 @@ private JobState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.enterpriseknowledgegraph.v1.JobState) } + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java new file mode 100644 index 000000000000..84b91618181b --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/job_state.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public final class JobStateProto { + private JobStateProto() {} + 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 = { + "\n8google/cloud/enterpriseknowledgegraph/" + + "v1/job_state.proto\022(google.cloud.enterpr" + + "iseknowledgegraph.v1*\236\002\n\010JobState\022\031\n\025JOB" + + "_STATE_UNSPECIFIED\020\000\022\025\n\021JOB_STATE_PENDIN" + + "G\020\t\022\025\n\021JOB_STATE_RUNNING\020\001\022\027\n\023JOB_STATE_" + + "SUCCEEDED\020\002\022\024\n\020JOB_STATE_FAILED\020\003\022\027\n\023JOB" + + "_STATE_CANCELLED\020\004\022\"\n\036JOB_STATE_KNOWLEDG" + + "E_EXTRACTION\020\005\022!\n\035JOB_STATE_RECON_PREPRO" + + "CESSING\020\006\022\030\n\024JOB_STATE_CLUSTERING\020\007\022 \n\034J" + + "OB_STATE_EXPORTING_CLUSTERS\020\010B\245\002\n,com.go" + + "ogle.cloud.enterpriseknowledgegraph.v1B\r" + + "JobStateProtoP\001Z`google.golang.org/genpr" + + "oto/googleapis/cloud/enterpriseknowledge" + + "graph/v1;enterpriseknowledgegraph\252\002(Goog" + + "le.Cloud.EnterpriseKnowledgeGraph.V1\312\002(G" + + "oogle\\Cloud\\EnterpriseKnowledgeGraph\\V1\352" + + "\002+Google::Cloud::EnterpriseKnowledgeGrap" + + "h::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java similarity index 60% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java index d131212a7c60..12c143b227df 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java @@ -1,46 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Request message for
  * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
  * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} */ -public final class ListEntityReconciliationJobsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEntityReconciliationJobsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) ListEntityReconciliationJobsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEntityReconciliationJobsRequest.newBuilder() to construct. - private ListEntityReconciliationJobsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEntityReconciliationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEntityReconciliationJobsRequest() { parent_ = ""; filter_ = ""; @@ -49,45 +28,38 @@ private ListEntityReconciliationJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEntityReconciliationJobsRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.Builder - .class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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 @@ -96,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 name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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 { @@ -132,15 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -149,30 +116,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -183,14 +150,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The standard list page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +165,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +178,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The standard list page token.
    * 
* * 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 { @@ -248,7 +209,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +220,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,7 +250,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } 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_); @@ -302,20 +264,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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest)) { + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other = - (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,148 +303,131 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom( - java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
    * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - .class, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.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(); @@ -497,23 +443,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - build() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = - buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -521,11 +463,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = - new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest( - this); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -538,54 +477,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) - other); + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -627,37 +558,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); - 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) { @@ -670,23 +596,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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; @@ -695,24 +617,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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 { @@ -720,70 +639,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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 name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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 name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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; @@ -791,21 +697,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -814,22 +718,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -837,79 +740,69 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -917,36 +810,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The standard list page size.
      * 
* * 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 standard list page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -954,20 +841,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The standard list page token.
      * 
* * 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; @@ -976,21 +861,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The standard list page token.
      * 
* * 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 { @@ -998,68 +882,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The standard list page token.
      * 
* * 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; } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The standard list page token.
      * 
* * 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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,45 +946,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntityReconciliationJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntityReconciliationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,8 +992,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java similarity index 59% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java index 745b2703322c..cda427c1a817 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java @@ -1,121 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface ListEntityReconciliationJobsRequestOrBuilder - extends +public interface ListEntityReconciliationJobsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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 name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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(); /** - * - * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The standard list page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java similarity index 56% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java index 4abde1736f7a..135719eaca39 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java @@ -1,46 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Response message for
  * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
  * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} */ -public final class ListEntityReconciliationJobsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEntityReconciliationJobsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) ListEntityReconciliationJobsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEntityReconciliationJobsResponse.newBuilder() to construct. - private ListEntityReconciliationJobsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEntityReconciliationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEntityReconciliationJobsResponse() { entityReconciliationJobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -48,131 +27,102 @@ private ListEntityReconciliationJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEntityReconciliationJobsResponse(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.Builder.class); } public static final int ENTITY_RECONCILIATION_JOBS_FIELD_NUMBER = 1; - private java.util.List - entityReconciliationJobs_; + private java.util.List entityReconciliationJobs_; /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ @java.lang.Override - public java.util.List - getEntityReconciliationJobsList() { + public java.util.List getEntityReconciliationJobsList() { return entityReconciliationJobs_; } /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + public java.util.List getEntityReconciliationJobsOrBuilderList() { return entityReconciliationJobs_; } /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ @java.lang.Override public int getEntityReconciliationJobsCount() { return entityReconciliationJobs_.size(); } /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getEntityReconciliationJobs(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs(int index) { return entityReconciliationJobs_.get(index); } /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder - getEntityReconciliationJobsOrBuilder(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobsOrBuilder( + int index) { return entityReconciliationJobs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -181,29 +131,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -212,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < entityReconciliationJobs_.size(); i++) { output.writeMessage(1, entityReconciliationJobs_.get(i)); } @@ -241,9 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entityReconciliationJobs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, entityReconciliationJobs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entityReconciliationJobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -256,19 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse)) { + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other = - (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) obj; - if (!getEntityReconciliationJobsList().equals(other.getEntityReconciliationJobsList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getEntityReconciliationJobsList() + .equals(other.getEntityReconciliationJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,148 +238,131 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom( - java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( + java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
    * 
* - * Protobuf type {@code - * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - .class, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - .Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.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(); @@ -449,23 +379,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - build() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = - buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse build() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -473,16 +399,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = - new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse( - this); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse(this); int from_bitField0_ = bitField0_; if (entityReconciliationJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - entityReconciliationJobs_ = - java.util.Collections.unmodifiableList(entityReconciliationJobs_); + entityReconciliationJobs_ = java.util.Collections.unmodifiableList(entityReconciliationJobs_); bitField0_ = (bitField0_ & ~0x00000001); } result.entityReconciliationJobs_ = entityReconciliationJobs_; @@ -498,54 +420,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) - other); + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.getDefaultInstance()) return this; if (entityReconciliationJobsBuilder_ == null) { if (!other.entityReconciliationJobs_.isEmpty()) { if (entityReconciliationJobs_.isEmpty()) { @@ -564,10 +478,9 @@ public Builder mergeFrom( entityReconciliationJobsBuilder_ = null; entityReconciliationJobs_ = other.entityReconciliationJobs_; bitField0_ = (bitField0_ & ~0x00000001); - entityReconciliationJobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntityReconciliationJobsFieldBuilder() - : null; + entityReconciliationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntityReconciliationJobsFieldBuilder() : null; } else { entityReconciliationJobsBuilder_.addAllMessages(other.entityReconciliationJobs_); } @@ -603,34 +516,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob m = - input.readMessage( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .parser(), - extensionRegistry); - if (entityReconciliationJobsBuilder_ == null) { - ensureEntityReconciliationJobsIsMutable(); - entityReconciliationJobs_.add(m); - } else { - entityReconciliationJobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob m = + input.readMessage( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.parser(), + extensionRegistry); + if (entityReconciliationJobsBuilder_ == null) { + ensureEntityReconciliationJobsIsMutable(); + entityReconciliationJobs_.add(m); + } else { + entityReconciliationJobsBuilder_.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) { @@ -640,42 +549,29 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - entityReconciliationJobs_ = java.util.Collections.emptyList(); - + private java.util.List entityReconciliationJobs_ = + java.util.Collections.emptyList(); private void ensureEntityReconciliationJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entityReconciliationJobs_ = - new java.util.ArrayList< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( - entityReconciliationJobs_); + entityReconciliationJobs_ = new java.util.ArrayList(entityReconciliationJobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> - entityReconciliationJobsBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> entityReconciliationJobsBuilder_; /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public java.util.List - getEntityReconciliationJobsList() { + public java.util.List getEntityReconciliationJobsList() { if (entityReconciliationJobsBuilder_ == null) { return java.util.Collections.unmodifiableList(entityReconciliationJobs_); } else { @@ -683,16 +579,12 @@ private void ensureEntityReconciliationJobsIsMutable() { } } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public int getEntityReconciliationJobsCount() { if (entityReconciliationJobsBuilder_ == null) { @@ -702,19 +594,14 @@ public int getEntityReconciliationJobsCount() { } } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - getEntityReconciliationJobs(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs(int index) { if (entityReconciliationJobsBuilder_ == null) { return entityReconciliationJobs_.get(index); } else { @@ -722,16 +609,12 @@ public int getEntityReconciliationJobsCount() { } } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder setEntityReconciliationJobs( int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { @@ -748,21 +631,15 @@ public Builder setEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder setEntityReconciliationJobs( - int index, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - builderForValue) { + int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); entityReconciliationJobs_.set(index, builderForValue.build()); @@ -773,19 +650,14 @@ public Builder setEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public Builder addEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { + public Builder addEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { if (entityReconciliationJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,16 +671,12 @@ public Builder addEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder addEntityReconciliationJobs( int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { @@ -825,20 +693,15 @@ public Builder addEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder addEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); entityReconciliationJobs_.add(builderForValue.build()); @@ -849,21 +712,15 @@ public Builder addEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder addEntityReconciliationJobs( - int index, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - builderForValue) { + int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); entityReconciliationJobs_.add(index, builderForValue.build()); @@ -874,24 +731,19 @@ public Builder addEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder addAllEntityReconciliationJobs( - java.lang.Iterable< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> - values) { + java.lang.Iterable values) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityReconciliationJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityReconciliationJobs_); onChanged(); } else { entityReconciliationJobsBuilder_.addAllMessages(values); @@ -899,16 +751,12 @@ public Builder addAllEntityReconciliationJobs( return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder clearEntityReconciliationJobs() { if (entityReconciliationJobsBuilder_ == null) { @@ -921,16 +769,12 @@ public Builder clearEntityReconciliationJobs() { return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ public Builder removeEntityReconciliationJobs(int index) { if (entityReconciliationJobsBuilder_ == null) { @@ -943,56 +787,42 @@ public Builder removeEntityReconciliationJobs(int index) { return this; } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - getEntityReconciliationJobsBuilder(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder getEntityReconciliationJobsBuilder( + int index) { return getEntityReconciliationJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder - getEntityReconciliationJobsOrBuilder(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobsOrBuilder( + int index) { if (entityReconciliationJobsBuilder_ == null) { - return entityReconciliationJobs_.get(index); - } else { + return entityReconciliationJobs_.get(index); } else { return entityReconciliationJobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public java.util.List< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> - getEntityReconciliationJobsOrBuilderList() { + public java.util.List + getEntityReconciliationJobsOrBuilderList() { if (entityReconciliationJobsBuilder_ != null) { return entityReconciliationJobsBuilder_.getMessageOrBuilderList(); } else { @@ -1000,73 +830,48 @@ public Builder removeEntityReconciliationJobs(int index) { } } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - addEntityReconciliationJobsBuilder() { - return getEntityReconciliationJobsFieldBuilder() - .addBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder addEntityReconciliationJobsBuilder() { + return getEntityReconciliationJobsFieldBuilder().addBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance()); } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder - addEntityReconciliationJobsBuilder(int index) { - return getEntityReconciliationJobsFieldBuilder() - .addBuilder( - index, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob - .getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder addEntityReconciliationJobsBuilder( + int index) { + return getEntityReconciliationJobsFieldBuilder().addBuilder( + index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance()); } /** - * - * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - public java.util.List< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder> - getEntityReconciliationJobsBuilderList() { + public java.util.List + getEntityReconciliationJobsBuilderList() { return getEntityReconciliationJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> getEntityReconciliationJobsFieldBuilder() { if (entityReconciliationJobsBuilder_ == null) { - entityReconciliationJobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( + entityReconciliationJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( entityReconciliationJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1078,20 +883,18 @@ public Builder removeEntityReconciliationJobs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1100,21 +903,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1122,68 +924,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + 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); } @@ -1193,45 +988,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) - private static final com.google.cloud.enterpriseknowledgegraph.v1 - .ListEntityReconciliationJobsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntityReconciliationJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntityReconciliationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1243,8 +1034,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java similarity index 50% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java index 53dd4050f796..18ded24dbf93 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java @@ -1,121 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface ListEntityReconciliationJobsResponseOrBuilder - extends +public interface ListEntityReconciliationJobsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - java.util.List + java.util.List getEntityReconciliationJobsList(); /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs( - int index); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs(int index); /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ int getEntityReconciliationJobsCount(); /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - java.util.List< - ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + java.util.List getEntityReconciliationJobsOrBuilderList(); /** - * - * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; - * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder - getEntityReconciliationJobsOrBuilder(int index); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobsOrBuilder( + int index); /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java similarity index 100% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java new file mode 100644 index 000000000000..1f719f597612 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java @@ -0,0 +1,1081 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Request message for
+ * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest} + */ +public final class LookupPublicKgRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) + LookupPublicKgRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use LookupPublicKgRequest.newBuilder() to construct. + private LookupPublicKgRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LookupPublicKgRequest() { + parent_ = ""; + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LookupPublicKgRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList ids_; + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the ids. + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_; + } + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + + public static final int LANGUAGES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languages_; + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_; + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ids_.getRaw(i)); + } + for (int i = 0; i < languages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languages_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < languages_.size(); i++) { + dataSize += computeStringSizeNoTag(languages_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguagesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getIdsList() + .equals(other.getIdsList())) return false; + if (!getLanguagesList() + .equals(other.getLanguagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + if (getLanguagesCount() > 0) { + hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getLanguagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest 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.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for
+   * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest(this); + int from_bitField0_ = bitField0_; + result.parent_ = parent_; + if (((bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + if (((bitField0_ & 0x00000002) != 0)) { + languages_ = languages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.languages_ = languages_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + onChanged(); + } + if (!other.languages_.isEmpty()) { + if (languages_.isEmpty()) { + languages_ = other.languages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLanguagesIsMutable(); + languages_.addAll(other.languages_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIdsIsMutable(); + ids_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguagesIsMutable(); + languages_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * 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 Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the ids. + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index to set the value at. + * @param value The ids to set. + * @return This builder for chaining. + */ + public Builder setIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The ids to add. + * @return This builder for chaining. + */ + public Builder addIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param values The ids to add. + * @return This builder for chaining. + */ + public Builder addAllIds( + java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes of the ids to add. + * @return This builder for chaining. + */ + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + languages_ = new com.google.protobuf.LazyStringArrayList(languages_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_.getUnmodifiableView(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index to set the value at. + * @param value The languages to set. + * @return This builder for chaining. + */ + public Builder setLanguages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The languages to add. + * @return This builder for chaining. + */ + public Builder addLanguages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param values The languages to add. + * @return This builder for chaining. + */ + public Builder addAllLanguages( + java.lang.Iterable values) { + ensureLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languages_); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return This builder for chaining. + */ + public Builder clearLanguages() { + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The bytes of the languages to add. + * @return This builder for chaining. + */ + public Builder addLanguagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) + private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupPublicKgRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java new file mode 100644 index 000000000000..537ef44d64b3 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface LookupPublicKgRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/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 list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the ids. + */ + java.util.List + getIdsList(); + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of ids. + */ + int getIdsCount(); + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The ids at the given index. + */ + java.lang.String getIds(int index); + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + com.google.protobuf.ByteString + getIdsBytes(int index); + + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + java.util.List + getLanguagesList(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + int getLanguagesCount(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + java.lang.String getLanguages(int index); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + com.google.protobuf.ByteString + getLanguagesBytes(int index); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java new file mode 100644 index 000000000000..57ec2caf27ae --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java @@ -0,0 +1,1113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Response message for
+ * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse} + */ +public final class LookupPublicKgResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) + LookupPublicKgResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use LookupPublicKgResponse.newBuilder() to construct. + private LookupPublicKgResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LookupPublicKgResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LookupPublicKgResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.Value context_; + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Value getContext() { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private com.google.protobuf.Value type_; + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return type_ != null; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.protobuf.Value getType() { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; + private com.google.protobuf.ListValue itemListElement_; + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + @java.lang.Override + public boolean hasItemListElement() { + return itemListElement_ != null; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + @java.lang.Override + public com.google.protobuf.ListValue getItemListElement() { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + return getItemListElement(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (context_ != null) { + output.writeMessage(1, getContext()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (itemListElement_ != null) { + output.writeMessage(3, getItemListElement()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getContext()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (itemListElement_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getItemListElement()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (hasItemListElement() != other.hasItemListElement()) return false; + if (hasItemListElement()) { + if (!getItemListElement() + .equals(other.getItemListElement())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasItemListElement()) { + hash = (37 * hash) + ITEM_LIST_ELEMENT_FIELD_NUMBER; + hash = (53 * hash) + getItemListElement().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse 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.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + java.io.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.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse build() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse(this); + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + if (itemListElementBuilder_ == null) { + result.itemListElement_ = itemListElement_; + } else { + result.itemListElement_ = itemListElementBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasItemListElement()) { + mergeItemListElement(other.getItemListElement()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getTypeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getItemListElementFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.Value context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_; + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + public com.google.protobuf.Value getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext( + com.google.protobuf.Value.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder mergeContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.Value.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.protobuf.Value.getDefaultInstance() : context_; + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + + private com.google.protobuf.Value type_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_; + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + public com.google.protobuf.Value getType() { + if (typeBuilder_ == null) { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType( + com.google.protobuf.Value.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder mergeType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.Value.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + com.google.protobuf.Value.getDefaultInstance() : type_; + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private com.google.protobuf.ListValue itemListElement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + public boolean hasItemListElement() { + return itemListElementBuilder_ != null || itemListElement_ != null; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + public com.google.protobuf.ListValue getItemListElement() { + if (itemListElementBuilder_ == null) { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } else { + return itemListElementBuilder_.getMessage(); + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + itemListElement_ = value; + onChanged(); + } else { + itemListElementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement( + com.google.protobuf.ListValue.Builder builderForValue) { + if (itemListElementBuilder_ == null) { + itemListElement_ = builderForValue.build(); + onChanged(); + } else { + itemListElementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder mergeItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (itemListElement_ != null) { + itemListElement_ = + com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + } else { + itemListElement_ = value; + } + onChanged(); + } else { + itemListElementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder clearItemListElement() { + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + onChanged(); + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { + + onChanged(); + return getItemListElementFieldBuilder().getBuilder(); + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + if (itemListElementBuilder_ != null) { + return itemListElementBuilder_.getMessageOrBuilder(); + } else { + return itemListElement_ == null ? + com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + getItemListElementFieldBuilder() { + if (itemListElementBuilder_ == null) { + itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), + getParentForChildren(), + isClean()); + itemListElement_ = null; + } + return itemListElementBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) + private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupPublicKgResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java new file mode 100644 index 000000000000..49021a35a58f --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface LookupPublicKgResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + com.google.protobuf.Value getContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + com.google.protobuf.ValueOrBuilder getContextOrBuilder(); + + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + com.google.protobuf.Value getType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); + + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + boolean hasItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + com.google.protobuf.ListValue getItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java new file mode 100644 index 000000000000..dcdf5f962885 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java @@ -0,0 +1,1081 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Request message for
+ * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupRequest} + */ +public final class LookupRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) + LookupRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use LookupRequest.newBuilder() to construct. + private LookupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LookupRequest() { + parent_ = ""; + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LookupRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList ids_; + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the ids. + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_; + } + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + + public static final int LANGUAGES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languages_; + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_; + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ids_.getRaw(i)); + } + for (int i = 0; i < languages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languages_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < languages_.size(); i++) { + dataSize += computeStringSizeNoTag(languages_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguagesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getIdsList() + .equals(other.getIdsList())) return false; + if (!getLanguagesList() + .equals(other.getLanguagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + if (getLanguagesCount() > 0) { + hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getLanguagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest 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.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.LookupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for
+   * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest(this); + int from_bitField0_ = bitField0_; + result.parent_ = parent_; + if (((bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + if (((bitField0_ & 0x00000002) != 0)) { + languages_ = languages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.languages_ = languages_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + onChanged(); + } + if (!other.languages_.isEmpty()) { + if (languages_.isEmpty()) { + languages_ = other.languages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLanguagesIsMutable(); + languages_.addAll(other.languages_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIdsIsMutable(); + ids_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguagesIsMutable(); + languages_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * 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 Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the ids. + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index to set the value at. + * @param value The ids to set. + * @return This builder for chaining. + */ + public Builder setIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The ids to add. + * @return This builder for chaining. + */ + public Builder addIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param values The ids to add. + * @return This builder for chaining. + */ + public Builder addAllIds( + java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The list of entity ids to be used for lookup.
+     * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes of the ids to add. + * @return This builder for chaining. + */ + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + languages_ = new com.google.protobuf.LazyStringArrayList(languages_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_.getUnmodifiableView(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index to set the value at. + * @param value The languages to set. + * @return This builder for chaining. + */ + public Builder setLanguages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The languages to add. + * @return This builder for chaining. + */ + public Builder addLanguages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param values The languages to add. + * @return This builder for chaining. + */ + public Builder addAllLanguages( + java.lang.Iterable values) { + ensureLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languages_); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return This builder for chaining. + */ + public Builder clearLanguages() { + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The bytes of the languages to add. + * @return This builder for chaining. + */ + public Builder addLanguagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) + private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java new file mode 100644 index 000000000000..eb8b22e730b0 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface LookupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/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 list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the ids. + */ + java.util.List + getIdsList(); + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of ids. + */ + int getIdsCount(); + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The ids at the given index. + */ + java.lang.String getIds(int index); + /** + *
+   * Required. The list of entity ids to be used for lookup.
+   * 
+ * + * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + com.google.protobuf.ByteString + getIdsBytes(int index); + + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + java.util.List + getLanguagesList(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + int getLanguagesCount(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + java.lang.String getLanguages(int index); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + com.google.protobuf.ByteString + getLanguagesBytes(int index); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java new file mode 100644 index 000000000000..094867cf5af1 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java @@ -0,0 +1,1113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Response message for
+ * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupResponse} + */ +public final class LookupResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) + LookupResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use LookupResponse.newBuilder() to construct. + private LookupResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LookupResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LookupResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.Value context_; + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Value getContext() { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private com.google.protobuf.Value type_; + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return type_ != null; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.protobuf.Value getType() { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; + private com.google.protobuf.ListValue itemListElement_; + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + @java.lang.Override + public boolean hasItemListElement() { + return itemListElement_ != null; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + @java.lang.Override + public com.google.protobuf.ListValue getItemListElement() { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + return getItemListElement(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (context_ != null) { + output.writeMessage(1, getContext()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (itemListElement_ != null) { + output.writeMessage(3, getItemListElement()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getContext()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (itemListElement_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getItemListElement()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (hasItemListElement() != other.hasItemListElement()) return false; + if (hasItemListElement()) { + if (!getItemListElement() + .equals(other.getItemListElement())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasItemListElement()) { + hash = (37 * hash) + ITEM_LIST_ELEMENT_FIELD_NUMBER; + hash = (53 * hash) + getItemListElement().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse 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.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + java.io.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.enterpriseknowledgegraph.v1.LookupResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse build() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse(this); + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + if (itemListElementBuilder_ == null) { + result.itemListElement_ = itemListElement_; + } else { + result.itemListElement_ = itemListElementBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasItemListElement()) { + mergeItemListElement(other.getItemListElement()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getTypeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getItemListElementFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.Value context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_; + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + public com.google.protobuf.Value getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext( + com.google.protobuf.Value.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder mergeContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.Value.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.protobuf.Value.getDefaultInstance() : context_; + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + + private com.google.protobuf.Value type_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_; + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + public com.google.protobuf.Value getType() { + if (typeBuilder_ == null) { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType( + com.google.protobuf.Value.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder mergeType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.Value.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + com.google.protobuf.Value.getDefaultInstance() : type_; + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private com.google.protobuf.ListValue itemListElement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + public boolean hasItemListElement() { + return itemListElementBuilder_ != null || itemListElement_ != null; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + public com.google.protobuf.ListValue getItemListElement() { + if (itemListElementBuilder_ == null) { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } else { + return itemListElementBuilder_.getMessage(); + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + itemListElement_ = value; + onChanged(); + } else { + itemListElementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement( + com.google.protobuf.ListValue.Builder builderForValue) { + if (itemListElementBuilder_ == null) { + itemListElement_ = builderForValue.build(); + onChanged(); + } else { + itemListElementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder mergeItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (itemListElement_ != null) { + itemListElement_ = + com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + } else { + itemListElement_ = value; + } + onChanged(); + } else { + itemListElementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder clearItemListElement() { + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + onChanged(); + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { + + onChanged(); + return getItemListElementFieldBuilder().getBuilder(); + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + if (itemListElementBuilder_ != null) { + return itemListElementBuilder_.getMessageOrBuilder(); + } else { + return itemListElement_ == null ? + com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + getItemListElementFieldBuilder() { + if (itemListElementBuilder_ == null) { + itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), + getParentForChildren(), + isClean()); + itemListElement_ = null; + } + return itemListElementBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) + private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java new file mode 100644 index 000000000000..ff9baf1005f6 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface LookupResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + com.google.protobuf.Value getContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + com.google.protobuf.ValueOrBuilder getContextOrBuilder(); + + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + com.google.protobuf.Value getType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); + + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + boolean hasItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + com.google.protobuf.ListValue getItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java new file mode 100644 index 000000000000..f1b8744e3844 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/operation_metadata.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public final class OperationMetadataProto { + private OperationMetadataProto() {} + 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_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_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/enterpriseknowledgegraph/" + + "v1/operation_metadata.proto\022(google.clou" + + "d.enterpriseknowledgegraph.v1\032\037google/pr" + + "otobuf/timestamp.proto\"\307\002\n\027CommonOperati" + + "onMetadata\022V\n\005state\030\001 \001(\0162G.google.cloud" + + ".enterpriseknowledgegraph.v1.CommonOpera" + + "tionMetadata.State\022/\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\022/\n\013update_ti" + + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"r\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020" + + "\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAIL" + + "ED\020\004\022\r\n\tCANCELLED\020\005\022\013\n\007PENDING\020\006B\256\002\n,com" + + ".google.cloud.enterpriseknowledgegraph.v" + + "1B\026OperationMetadataProtoP\001Z`google.gola" + + "ng.org/genproto/googleapis/cloud/enterpr" + + "iseknowledgegraph/v1;enterpriseknowledge" + + "graph\252\002(Google.Cloud.EnterpriseKnowledge" + + "Graph.V1\312\002(Google\\Cloud\\EnterpriseKnowle" + + "dgeGraph\\V1\352\002+Google::Cloud::EnterpriseK" + + "nowledgeGraph::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor, + new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java similarity index 66% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java index 28eda8ad3807..f9cbefcf508b 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { bigqueryDataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); } public static final int BIGQUERY_DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object bigqueryDataset_; /** - * - * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bigqueryDataset. */ @java.lang.Override @@ -86,29 +64,29 @@ public java.lang.String getBigqueryDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryDataset_ = s; return s; } } /** - * - * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for bigqueryDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getBigqueryDatasetBytes() { + public com.google.protobuf.ByteString + getBigqueryDatasetBytes() { java.lang.Object ref = bigqueryDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigqueryDataset_ = b; return b; } else { @@ -117,7 +95,6 @@ public com.google.protobuf.ByteString getBigqueryDatasetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,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(bigqueryDataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bigqueryDataset_); } @@ -153,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.enterpriseknowledgegraph.v1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig) obj; - if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false; + if (!getBigqueryDataset() + .equals(other.getBigqueryDataset())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,136 +159,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; } @java.lang.Override @@ -341,8 +312,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig(this); result.bigqueryDataset_ = bigqueryDataset_; onBuilt(); return result; @@ -352,39 +322,38 @@ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig 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.enterpriseknowledgegraph.v1.OutputConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -392,8 +361,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance()) return this; if (!other.getBigqueryDataset().isEmpty()) { bigqueryDataset_ = other.bigqueryDataset_; onChanged(); @@ -424,19 +392,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bigqueryDataset_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bigqueryDataset_ = 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,20 +415,18 @@ public Builder mergeFrom( private java.lang.Object bigqueryDataset_ = ""; /** - * - * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bigqueryDataset. */ public java.lang.String getBigqueryDataset() { java.lang.Object ref = bigqueryDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryDataset_ = s; return s; @@ -471,21 +435,20 @@ public java.lang.String getBigqueryDataset() { } } /** - * - * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for bigqueryDataset. */ - public com.google.protobuf.ByteString getBigqueryDatasetBytes() { + public com.google.protobuf.ByteString + getBigqueryDatasetBytes() { java.lang.Object ref = bigqueryDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigqueryDataset_ = b; return b; } else { @@ -493,68 +456,61 @@ public com.google.protobuf.ByteString getBigqueryDatasetBytes() { } } /** - * - * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bigqueryDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryDataset(java.lang.String value) { + public Builder setBigqueryDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bigqueryDataset_ = value; onChanged(); return this; } /** - * - * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearBigqueryDataset() { - + bigqueryDataset_ = getDefaultInstance().getBigqueryDataset(); onChanged(); return this; } /** - * - * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for bigqueryDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setBigqueryDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigqueryDataset_ = 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); } @@ -564,12 +520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) private static final com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig(); } @@ -578,27 +534,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -613,4 +569,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java similarity index 52% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java index d5a9f52db6a7..62871c6311c2 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bigqueryDataset. */ java.lang.String getBigqueryDataset(); /** - * - * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for bigqueryDataset. */ - com.google.protobuf.ByteString getBigqueryDatasetBytes(); + com.google.protobuf.ByteString + getBigqueryDatasetBytes(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java new file mode 100644 index 000000000000..18644656731c --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java @@ -0,0 +1,241 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.enterpriseknowledgegraph.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PublicKnowledgeGraphEntityName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PUBLIC_KNOWLEDGE_GRAPH_ENTITY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/publicKnowledgeGraphEntities/{public_knowledge_graph_entity}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String publicKnowledgeGraphEntity; + + @Deprecated + protected PublicKnowledgeGraphEntityName() { + project = null; + location = null; + publicKnowledgeGraphEntity = null; + } + + private PublicKnowledgeGraphEntityName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + publicKnowledgeGraphEntity = + Preconditions.checkNotNull(builder.getPublicKnowledgeGraphEntity()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublicKnowledgeGraphEntity() { + return publicKnowledgeGraphEntity; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PublicKnowledgeGraphEntityName of( + String project, String location, String publicKnowledgeGraphEntity) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublicKnowledgeGraphEntity(publicKnowledgeGraphEntity) + .build(); + } + + public static String format(String project, String location, String publicKnowledgeGraphEntity) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublicKnowledgeGraphEntity(publicKnowledgeGraphEntity) + .build() + .toString(); + } + + public static PublicKnowledgeGraphEntityName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PUBLIC_KNOWLEDGE_GRAPH_ENTITY.validatedMatch( + formattedString, + "PublicKnowledgeGraphEntityName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("public_knowledge_graph_entity")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PublicKnowledgeGraphEntityName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PUBLIC_KNOWLEDGE_GRAPH_ENTITY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (publicKnowledgeGraphEntity != null) { + fieldMapBuilder.put("public_knowledge_graph_entity", publicKnowledgeGraphEntity); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PUBLIC_KNOWLEDGE_GRAPH_ENTITY.instantiate( + "project", + project, + "location", + location, + "public_knowledge_graph_entity", + publicKnowledgeGraphEntity); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PublicKnowledgeGraphEntityName that = ((PublicKnowledgeGraphEntityName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.publicKnowledgeGraphEntity, that.publicKnowledgeGraphEntity); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(publicKnowledgeGraphEntity); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/publicKnowledgeGraphEntities/{public_knowledge_graph_entity}. + */ + public static class Builder { + private String project; + private String location; + private String publicKnowledgeGraphEntity; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublicKnowledgeGraphEntity() { + return publicKnowledgeGraphEntity; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPublicKnowledgeGraphEntity(String publicKnowledgeGraphEntity) { + this.publicKnowledgeGraphEntity = publicKnowledgeGraphEntity; + return this; + } + + private Builder(PublicKnowledgeGraphEntityName publicKnowledgeGraphEntityName) { + this.project = publicKnowledgeGraphEntityName.project; + this.location = publicKnowledgeGraphEntityName.location; + this.publicKnowledgeGraphEntity = publicKnowledgeGraphEntityName.publicKnowledgeGraphEntity; + } + + public PublicKnowledgeGraphEntityName build() { + return new PublicKnowledgeGraphEntityName(this); + } + } +} diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java similarity index 65% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java index f294a2cf7d6f..2de3077e21c5 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** - * - * *
  * Recon configs
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig} */ -public final class ReconConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReconConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) ReconConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReconConfig.newBuilder() to construct. private ReconConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReconConfig() {} + private ReconConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReconConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); } - public interface OptionsOrBuilder - extends + public interface OptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * If true, separate clusters by their geographic region (from geocoding).
      * Uses the following entity features:
@@ -83,63 +62,57 @@ public interface OptionsOrBuilder
      * 
* * bool enable_geocoding_separation = 100; - * * @return The enableGeocodingSeparation. */ boolean getEnableGeocodingSeparation(); } /** - * - * *
    * Options for experimental changes on entity clustering behavior.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options} */ - public static final class Options extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Options extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) OptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Options.newBuilder() to construct. private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Options() {} + private Options() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Options(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); } public static final int ENABLE_GEOCODING_SEPARATION_FIELD_NUMBER = 100; private boolean enableGeocodingSeparation_; /** - * - * *
      * If true, separate clusters by their geographic region (from geocoding).
      * Uses the following entity features:
@@ -150,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * bool enable_geocoding_separation = 100; - * * @return The enableGeocodingSeparation. */ @java.lang.Override @@ -159,7 +131,6 @@ public boolean getEnableGeocodingSeparation() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableGeocodingSeparation_ != false) { output.writeBool(100, enableGeocodingSeparation_); } @@ -185,8 +157,8 @@ public int getSerializedSize() { size = 0; if (enableGeocodingSeparation_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(100, enableGeocodingSeparation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(100, enableGeocodingSeparation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -196,15 +168,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other = - (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other = (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) obj; - if (getEnableGeocodingSeparation() != other.getEnableGeocodingSeparation()) return false; + if (getEnableGeocodingSeparation() + != other.getEnableGeocodingSeparation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -217,102 +189,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_GEOCODING_SEPARATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGeocodingSeparation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableGeocodingSeparation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -322,42 +287,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options for experimental changes on entity clustering behavior.
      * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.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(); @@ -367,16 +329,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance(); } @java.lang.Override @@ -390,8 +350,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options build() @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options result = - new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options(this); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options result = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options(this); result.enableGeocodingSeparation_ = enableGeocodingSeparation_; onBuilt(); return result; @@ -401,53 +360,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options 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) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance()) return this; if (other.getEnableGeocodingSeparation() != false) { setEnableGeocodingSeparation(other.getEnableGeocodingSeparation()); } @@ -477,19 +429,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 800: - { - enableGeocodingSeparation_ = input.readBool(); - - break; - } // case 800 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 800: { + enableGeocodingSeparation_ = input.readBool(); + + break; + } // case 800 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,10 +450,8 @@ public Builder mergeFrom( return this; } - private boolean enableGeocodingSeparation_; + private boolean enableGeocodingSeparation_ ; /** - * - * *
        * If true, separate clusters by their geographic region (from geocoding).
        * Uses the following entity features:
@@ -514,7 +462,6 @@ public Builder mergeFrom(
        * 
* * bool enable_geocoding_separation = 100; - * * @return The enableGeocodingSeparation. */ @java.lang.Override @@ -522,8 +469,6 @@ public boolean getEnableGeocodingSeparation() { return enableGeocodingSeparation_; } /** - * - * *
        * If true, separate clusters by their geographic region (from geocoding).
        * Uses the following entity features:
@@ -534,19 +479,16 @@ public boolean getEnableGeocodingSeparation() {
        * 
* * bool enable_geocoding_separation = 100; - * * @param value The enableGeocodingSeparation to set. * @return This builder for chaining. */ public Builder setEnableGeocodingSeparation(boolean value) { - + enableGeocodingSeparation_ = value; onChanged(); return this; } /** - * - * *
        * If true, separate clusters by their geographic region (from geocoding).
        * Uses the following entity features:
@@ -557,16 +499,14 @@ public Builder setEnableGeocodingSeparation(boolean value) {
        * 
* * bool enable_geocoding_separation = 100; - * * @return This builder for chaining. */ public Builder clearEnableGeocodingSeparation() { - + enableGeocodingSeparation_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -579,44 +519,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Options parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Options parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -628,90 +565,76 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ModelConfigOrBuilder - extends + public interface ModelConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; - * * @return The modelName. */ java.lang.String getModelName(); /** - * - * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; - * * @return The bytes for modelName. */ - com.google.protobuf.ByteString getModelNameBytes(); + com.google.protobuf.ByteString + getModelNameBytes(); /** - * - * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; - * * @return The versionTag. */ java.lang.String getVersionTag(); /** - * - * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; - * * @return The bytes for versionTag. */ - com.google.protobuf.ByteString getVersionTagBytes(); + com.google.protobuf.ByteString + getVersionTagBytes(); } /** - * - * *
    * Model Configs
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig} */ - public static final class ModelConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ModelConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) ModelConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModelConfig.newBuilder() to construct. private ModelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ModelConfig() { modelName_ = ""; versionTag_ = ""; @@ -719,42 +642,38 @@ private ModelConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModelConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); } public static final int MODEL_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object modelName_; /** - * - * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; - * * @return The modelName. */ @java.lang.Override @@ -763,30 +682,30 @@ public java.lang.String getModelName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelName_ = s; return s; } } /** - * - * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; - * * @return The bytes for modelName. */ @java.lang.Override - public com.google.protobuf.ByteString getModelNameBytes() { + public com.google.protobuf.ByteString + getModelNameBytes() { java.lang.Object ref = modelName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelName_ = b; return b; } else { @@ -797,15 +716,12 @@ public com.google.protobuf.ByteString getModelNameBytes() { public static final int VERSION_TAG_FIELD_NUMBER = 2; private volatile java.lang.Object versionTag_; /** - * - * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; - * * @return The versionTag. */ @java.lang.Override @@ -814,30 +730,30 @@ public java.lang.String getVersionTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionTag_ = s; return s; } } /** - * - * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; - * * @return The bytes for versionTag. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionTagBytes() { + public com.google.protobuf.ByteString + getVersionTagBytes() { java.lang.Object ref = versionTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionTag_ = b; return b; } else { @@ -846,7 +762,6 @@ public com.google.protobuf.ByteString getVersionTagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -858,7 +773,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelName_); } @@ -888,16 +804,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.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) obj; - if (!getModelName().equals(other.getModelName())) return false; - if (!getVersionTag().equals(other.getVersionTag())) return false; + if (!getModelName() + .equals(other.getModelName())) return false; + if (!getVersionTag() + .equals(other.getVersionTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -919,95 +836,87 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1017,42 +926,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Model Configs
      * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); } - // Construct using - // com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.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(); @@ -1064,22 +970,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - .getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig build() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = - buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1088,8 +991,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig(this); result.modelName_ = modelName_; result.versionTag_ = versionTag_; onBuilt(); @@ -1100,53 +1002,46 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) { - return mergeFrom( - (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other) { - if (other - == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance()) return this; if (!other.getModelName().isEmpty()) { modelName_ = other.modelName_; onChanged(); @@ -1181,25 +1076,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - modelName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - versionTag_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + modelName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + versionTag_ = 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) { @@ -1212,21 +1104,19 @@ public Builder mergeFrom( private java.lang.Object modelName_ = ""; /** - * - * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; - * * @return The modelName. */ public java.lang.String getModelName() { java.lang.Object ref = modelName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelName_ = s; return s; @@ -1235,22 +1125,21 @@ public java.lang.String getModelName() { } } /** - * - * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; - * * @return The bytes for modelName. */ - public com.google.protobuf.ByteString getModelNameBytes() { + public com.google.protobuf.ByteString + getModelNameBytes() { java.lang.Object ref = modelName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelName_ = b; return b; } else { @@ -1258,64 +1147,57 @@ public com.google.protobuf.ByteString getModelNameBytes() { } } /** - * - * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; - * * @param value The modelName to set. * @return This builder for chaining. */ - public Builder setModelName(java.lang.String value) { + public Builder setModelName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + modelName_ = value; onChanged(); return this; } /** - * - * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; - * * @return This builder for chaining. */ public Builder clearModelName() { - + modelName_ = getDefaultInstance().getModelName(); onChanged(); return this; } /** - * - * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; - * * @param value The bytes for modelName to set. * @return This builder for chaining. */ - public Builder setModelNameBytes(com.google.protobuf.ByteString value) { + public Builder setModelNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelName_ = value; onChanged(); return this; @@ -1323,21 +1205,19 @@ public Builder setModelNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object versionTag_ = ""; /** - * - * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; - * * @return The versionTag. */ public java.lang.String getVersionTag() { java.lang.Object ref = versionTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionTag_ = s; return s; @@ -1346,22 +1226,21 @@ public java.lang.String getVersionTag() { } } /** - * - * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; - * * @return The bytes for versionTag. */ - public com.google.protobuf.ByteString getVersionTagBytes() { + public com.google.protobuf.ByteString + getVersionTagBytes() { java.lang.Object ref = versionTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionTag_ = b; return b; } else { @@ -1369,69 +1248,61 @@ public com.google.protobuf.ByteString getVersionTagBytes() { } } /** - * - * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; - * * @param value The versionTag to set. * @return This builder for chaining. */ - public Builder setVersionTag(java.lang.String value) { + public Builder setVersionTag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + versionTag_ = value; onChanged(); return this; } /** - * - * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; - * * @return This builder for chaining. */ public Builder clearVersionTag() { - + versionTag_ = getDefaultInstance().getVersionTag(); onChanged(); return this; } /** - * - * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; - * * @param value The bytes for versionTag to set. * @return This builder for chaining. */ - public Builder setVersionTagBytes(com.google.protobuf.ByteString value) { + public Builder setVersionTagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + versionTag_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1444,44 +1315,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1493,24 +1361,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int clusteringConfigCase_ = 0; private java.lang.Object clusteringConfig_; - public enum ClusteringConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTED_COMPONENTS_CONFIG(1), AFFINITY_CLUSTERING_CONFIG(2), CLUSTERINGCONFIG_NOT_SET(0); private final int value; - private ClusteringConfigCase(int value) { this.value = value; } @@ -1526,38 +1391,30 @@ public static ClusteringConfigCase valueOf(int value) { public static ClusteringConfigCase forNumber(int value) { switch (value) { - case 1: - return CONNECTED_COMPONENTS_CONFIG; - case 2: - return AFFINITY_CLUSTERING_CONFIG; - case 0: - return CLUSTERINGCONFIG_NOT_SET; - default: - return null; + case 1: return CONNECTED_COMPONENTS_CONFIG; + case 2: return AFFINITY_CLUSTERING_CONFIG; + case 0: return CLUSTERINGCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ClusteringConfigCase getClusteringConfigCase() { - return ClusteringConfigCase.forNumber(clusteringConfigCase_); + public ClusteringConfigCase + getClusteringConfigCase() { + return ClusteringConfigCase.forNumber( + clusteringConfigCase_); } public static final int CONNECTED_COMPONENTS_CONFIG_FIELD_NUMBER = 1; /** - * - * *
    * Configs for connected components.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; * @return Whether the connectedComponentsConfig field is set. */ @java.lang.Override @@ -1565,62 +1422,42 @@ public boolean hasConnectedComponentsConfig() { return clusteringConfigCase_ == 1; } /** - * - * *
    * Configs for connected components.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; * @return The connectedComponentsConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - getConnectedComponentsConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getConnectedComponentsConfig() { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } /** - * - * *
    * Configs for connected components.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder - getConnectedComponentsConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder getConnectedComponentsConfigOrBuilder() { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } public static final int AFFINITY_CLUSTERING_CONFIG_FIELD_NUMBER = 2; /** - * - * *
    * Configs for affinity clustering.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; * @return Whether the affinityClusteringConfig field is set. */ @java.lang.Override @@ -1628,61 +1465,43 @@ public boolean hasAffinityClusteringConfig() { return clusteringConfigCase_ == 2; } /** - * - * *
    * Configs for affinity clustering.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; * @return The affinityClusteringConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - getAffinityClusteringConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getAffinityClusteringConfig() { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } /** - * - * *
    * Configs for affinity clustering.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder - getAffinityClusteringConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder getAffinityClusteringConfigOrBuilder() { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options_; /** - * - * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; - * * @return Whether the options field is set. */ @java.lang.Override @@ -1690,25 +1509,18 @@ public boolean hasOptions() { return options_ != null; } /** - * - * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; - * * @return The options. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptions() { - return options_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() - : options_; + return options_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() : options_; } /** - * - * *
    * Extra options that affect entity clustering behavior.
    * 
@@ -1716,23 +1528,18 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptio * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder - getOptionsOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder getOptionsOrBuilder() { return getOptions(); } public static final int MODEL_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig modelConfig_; /** - * - * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; * @return Whether the modelConfig field is set. */ @java.lang.Override @@ -1740,41 +1547,30 @@ public boolean hasModelConfig() { return modelConfig_ != null; } /** - * - * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; * @return The modelConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getModelConfig() { - return modelConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() - : modelConfig_; + return modelConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() : modelConfig_; } /** - * - * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder - getModelConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder getModelConfigOrBuilder() { return getModelConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1786,18 +1582,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 (clusteringConfigCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_); + output.writeMessage(1, (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_); } if (clusteringConfigCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_); + output.writeMessage(2, (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_); } if (options_ != null) { output.writeMessage(3, getOptions()); @@ -1815,24 +1606,20 @@ public int getSerializedSize() { size = 0; if (clusteringConfigCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_); } if (clusteringConfigCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_); } if (options_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOptions()); } if (modelConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModelConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getModelConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1842,31 +1629,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig other = - (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig) obj; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { - if (!getOptions().equals(other.getOptions())) return false; + if (!getOptions() + .equals(other.getOptions())) return false; } if (hasModelConfig() != other.hasModelConfig()) return false; if (hasModelConfig()) { - if (!getModelConfig().equals(other.getModelConfig())) return false; + if (!getModelConfig() + .equals(other.getModelConfig())) return false; } if (!getClusteringConfigCase().equals(other.getClusteringConfigCase())) return false; switch (clusteringConfigCase_) { case 1: - if (!getConnectedComponentsConfig().equals(other.getConnectedComponentsConfig())) - return false; + if (!getConnectedComponentsConfig() + .equals(other.getConnectedComponentsConfig())) return false; break; case 2: - if (!getAffinityClusteringConfig().equals(other.getAffinityClusteringConfig())) - return false; + if (!getAffinityClusteringConfig() + .equals(other.getAffinityClusteringConfig())) return false; break; case 0: default: @@ -1908,136 +1696,129 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig prototype) { + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Recon configs
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2065,9 +1846,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto - .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; } @java.lang.Override @@ -2086,8 +1867,7 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig build() { @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig result = - new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig(this); if (clusteringConfigCase_ == 1) { if (connectedComponentsConfigBuilder_ == null) { result.clusteringConfig_ = clusteringConfig_; @@ -2121,39 +1901,38 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig 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.enterpriseknowledgegraph.v1.ReconConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig) other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig)other); } else { super.mergeFrom(other); return this; @@ -2161,8 +1940,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance()) return this; if (other.hasOptions()) { mergeOptions(other.getOptions()); } @@ -2170,20 +1948,17 @@ public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfi mergeModelConfig(other.getModelConfig()); } switch (other.getClusteringConfigCase()) { - case CONNECTED_COMPONENTS_CONFIG: - { - mergeConnectedComponentsConfig(other.getConnectedComponentsConfig()); - break; - } - case AFFINITY_CLUSTERING_CONFIG: - { - mergeAffinityClusteringConfig(other.getAffinityClusteringConfig()); - break; - } - case CLUSTERINGCONFIG_NOT_SET: - { - break; - } + case CONNECTED_COMPONENTS_CONFIG: { + mergeConnectedComponentsConfig(other.getConnectedComponentsConfig()); + break; + } + case AFFINITY_CLUSTERING_CONFIG: { + mergeAffinityClusteringConfig(other.getAffinityClusteringConfig()); + break; + } + case CLUSTERINGCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2211,39 +1986,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getConnectedComponentsConfigFieldBuilder().getBuilder(), extensionRegistry); - clusteringConfigCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getAffinityClusteringConfigFieldBuilder().getBuilder(), extensionRegistry); - clusteringConfigCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getConnectedComponentsConfigFieldBuilder().getBuilder(), + extensionRegistry); + clusteringConfigCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getAffinityClusteringConfigFieldBuilder().getBuilder(), + extensionRegistry); + clusteringConfigCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getOptionsFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - case 34: - { - input.readMessage(getModelConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 26 + case 34: { + input.readMessage( + getModelConfigFieldBuilder().getBuilder(), + extensionRegistry); - 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) { @@ -2253,12 +2029,12 @@ public Builder mergeFrom( } // finally return this; } - private int clusteringConfigCase_ = 0; private java.lang.Object clusteringConfig_; - - public ClusteringConfigCase getClusteringConfigCase() { - return ClusteringConfigCase.forNumber(clusteringConfigCase_); + public ClusteringConfigCase + getClusteringConfigCase() { + return ClusteringConfigCase.forNumber( + clusteringConfigCase_); } public Builder clearClusteringConfig() { @@ -2268,22 +2044,15 @@ public Builder clearClusteringConfig() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> - connectedComponentsConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> connectedComponentsConfigBuilder_; /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; * @return Whether the connectedComponentsConfig field is set. */ @java.lang.Override @@ -2291,49 +2060,35 @@ public boolean hasConnectedComponentsConfig() { return clusteringConfigCase_ == 1; } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; * @return The connectedComponentsConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - getConnectedComponentsConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getConnectedComponentsConfig() { if (connectedComponentsConfigBuilder_ == null) { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } else { if (clusteringConfigCase_ == 1) { return connectedComponentsConfigBuilder_.getMessage(); } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ - public Builder setConnectedComponentsConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { + public Builder setConnectedComponentsConfig(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { if (connectedComponentsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2347,19 +2102,14 @@ public Builder setConnectedComponentsConfig( return this; } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ public Builder setConnectedComponentsConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder - builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder builderForValue) { if (connectedComponentsConfigBuilder_ == null) { clusteringConfig_ = builderForValue.build(); onChanged(); @@ -2370,29 +2120,18 @@ public Builder setConnectedComponentsConfig( return this; } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ - public Builder mergeConnectedComponentsConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { + public Builder mergeConnectedComponentsConfig(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { if (connectedComponentsConfigBuilder_ == null) { - if (clusteringConfigCase_ == 1 - && clusteringConfig_ - != com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance()) { - clusteringConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.newBuilder( - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_) - .mergeFrom(value) - .buildPartial(); + if (clusteringConfigCase_ == 1 && + clusteringConfig_ != com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance()) { + clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.newBuilder((com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_) + .mergeFrom(value).buildPartial(); } else { clusteringConfig_ = value; } @@ -2408,15 +2147,11 @@ public Builder mergeConnectedComponentsConfig( return this; } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ public Builder clearConnectedComponentsConfig() { if (connectedComponentsConfigBuilder_ == null) { @@ -2435,100 +2170,67 @@ public Builder clearConnectedComponentsConfig() { return this; } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder - getConnectedComponentsConfigBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder getConnectedComponentsConfigBuilder() { return getConnectedComponentsConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder - getConnectedComponentsConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder getConnectedComponentsConfigOrBuilder() { if ((clusteringConfigCase_ == 1) && (connectedComponentsConfigBuilder_ != null)) { return connectedComponentsConfigBuilder_.getMessageOrBuilder(); } else { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } } /** - * - * *
      * Configs for connected components.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> getConnectedComponentsConfigFieldBuilder() { if (connectedComponentsConfigBuilder_ == null) { if (!(clusteringConfigCase_ == 1)) { - clusteringConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - .getDefaultInstance(); + clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); } - connectedComponentsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder>( - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - clusteringConfig_, + connectedComponentsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder>( + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_, getParentForChildren(), isClean()); clusteringConfig_ = null; } clusteringConfigCase_ = 1; - onChanged(); - ; + onChanged();; return connectedComponentsConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> - affinityClusteringConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> affinityClusteringConfigBuilder_; /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; * @return Whether the affinityClusteringConfig field is set. */ @java.lang.Override @@ -2536,49 +2238,35 @@ public boolean hasAffinityClusteringConfig() { return clusteringConfigCase_ == 2; } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; * @return The affinityClusteringConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - getAffinityClusteringConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getAffinityClusteringConfig() { if (affinityClusteringConfigBuilder_ == null) { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } else { if (clusteringConfigCase_ == 2) { return affinityClusteringConfigBuilder_.getMessage(); } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ - public Builder setAffinityClusteringConfig( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { + public Builder setAffinityClusteringConfig(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { if (affinityClusteringConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2592,19 +2280,14 @@ public Builder setAffinityClusteringConfig( return this; } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ public Builder setAffinityClusteringConfig( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder - builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder builderForValue) { if (affinityClusteringConfigBuilder_ == null) { clusteringConfig_ = builderForValue.build(); onChanged(); @@ -2615,29 +2298,18 @@ public Builder setAffinityClusteringConfig( return this; } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ - public Builder mergeAffinityClusteringConfig( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { + public Builder mergeAffinityClusteringConfig(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { if (affinityClusteringConfigBuilder_ == null) { - if (clusteringConfigCase_ == 2 - && clusteringConfig_ - != com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance()) { - clusteringConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.newBuilder( - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_) - .mergeFrom(value) - .buildPartial(); + if (clusteringConfigCase_ == 2 && + clusteringConfig_ != com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance()) { + clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.newBuilder((com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_) + .mergeFrom(value).buildPartial(); } else { clusteringConfig_ = value; } @@ -2653,15 +2325,11 @@ public Builder mergeAffinityClusteringConfig( return this; } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ public Builder clearAffinityClusteringConfig() { if (affinityClusteringConfigBuilder_ == null) { @@ -2680,135 +2348,96 @@ public Builder clearAffinityClusteringConfig() { return this; } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder - getAffinityClusteringConfigBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder getAffinityClusteringConfigBuilder() { return getAffinityClusteringConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder - getAffinityClusteringConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder getAffinityClusteringConfigOrBuilder() { if ((clusteringConfigCase_ == 2) && (affinityClusteringConfigBuilder_ != null)) { return affinityClusteringConfigBuilder_.getMessageOrBuilder(); } else { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } } /** - * - * *
      * Configs for affinity clustering.
      * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> getAffinityClusteringConfigFieldBuilder() { if (affinityClusteringConfigBuilder_ == null) { if (!(clusteringConfigCase_ == 2)) { - clusteringConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - .getDefaultInstance(); + clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); } - affinityClusteringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder>( - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - clusteringConfig_, + affinityClusteringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder>( + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_, getParentForChildren(), isClean()); clusteringConfig_ = null; } clusteringConfigCase_ = 2; - onChanged(); - ; + onChanged();; return affinityClusteringConfigBuilder_; } private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> - optionsBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> optionsBuilder_; /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; - * * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; - * * @return The options. */ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptions() { if (optionsBuilder_ == null) { - return options_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() - : options_; + return options_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public Builder setOptions( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { + public Builder setOptions(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2822,8 +2451,6 @@ public Builder setOptions( return this; } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
@@ -2842,22 +2469,17 @@ public Builder setOptions( return this; } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public Builder mergeOptions( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { + public Builder mergeOptions(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { if (optionsBuilder_ == null) { if (options_ != null) { options_ = - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.newBuilder(options_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } @@ -2869,8 +2491,6 @@ public Builder mergeOptions( return this; } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
@@ -2889,42 +2509,33 @@ public Builder clearOptions() { return this; } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder - getOptionsBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder getOptionsBuilder() { + onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder - getOptionsOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { - return options_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() - : options_; + return options_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() : options_; } } /** - * - * *
      * Extra options that affect entity clustering behavior.
      * 
@@ -2932,17 +2543,14 @@ public Builder clearOptions() { * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { - optionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder>( - getOptions(), getParentForChildren(), isClean()); + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); options_ = null; } return optionsBuilder_; @@ -2950,59 +2558,41 @@ public Builder clearOptions() { private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig modelConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> - modelConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> modelConfigBuilder_; /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; * @return Whether the modelConfig field is set. */ public boolean hasModelConfig() { return modelConfigBuilder_ != null || modelConfig_ != null; } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; * @return The modelConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getModelConfig() { if (modelConfigBuilder_ == null) { - return modelConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - .getDefaultInstance() - : modelConfig_; + return modelConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() : modelConfig_; } else { return modelConfigBuilder_.getMessage(); } } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ - public Builder setModelConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { + public Builder setModelConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { if (modelConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3016,18 +2606,14 @@ public Builder setModelConfig( return this; } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ public Builder setModelConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder - builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder builderForValue) { if (modelConfigBuilder_ == null) { modelConfig_ = builderForValue.build(); onChanged(); @@ -3038,24 +2624,17 @@ public Builder setModelConfig( return this; } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ - public Builder mergeModelConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { + public Builder mergeModelConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { if (modelConfigBuilder_ == null) { if (modelConfig_ != null) { modelConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.newBuilder( - modelConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.newBuilder(modelConfig_).mergeFrom(value).buildPartial(); } else { modelConfig_ = value; } @@ -3067,14 +2646,11 @@ public Builder mergeModelConfig( return this; } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ public Builder clearModelConfig() { if (modelConfigBuilder_ == null) { @@ -3088,71 +2664,55 @@ public Builder clearModelConfig() { return this; } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder - getModelConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder getModelConfigBuilder() { + onChanged(); return getModelConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder - getModelConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder getModelConfigOrBuilder() { if (modelConfigBuilder_ != null) { return modelConfigBuilder_.getMessageOrBuilder(); } else { - return modelConfig_ == null - ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig - .getDefaultInstance() - : modelConfig_; + return modelConfig_ == null ? + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() : modelConfig_; } } /** - * - * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> getModelConfigFieldBuilder() { if (modelConfigBuilder_ == null) { - modelConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder>( - getModelConfig(), getParentForChildren(), isClean()); + modelConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder>( + getModelConfig(), + getParentForChildren(), + isClean()); modelConfig_ = null; } return modelConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3162,12 +2722,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig(); } @@ -3176,27 +2736,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReconConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3211,4 +2771,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java similarity index 58% rename from java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java rename to owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java index 6257e80834d3..7c7443c8cc45 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java @@ -1,141 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface ReconConfigOrBuilder - extends +public interface ReconConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Configs for connected components.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; * @return Whether the connectedComponentsConfig field is set. */ boolean hasConnectedComponentsConfig(); /** - * - * *
    * Configs for connected components.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; * @return The connectedComponentsConfig. */ - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig - getConnectedComponentsConfig(); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getConnectedComponentsConfig(); /** - * - * *
    * Configs for connected components.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; - * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; */ - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder - getConnectedComponentsConfigOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder getConnectedComponentsConfigOrBuilder(); /** - * - * *
    * Configs for affinity clustering.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; * @return Whether the affinityClusteringConfig field is set. */ boolean hasAffinityClusteringConfig(); /** - * - * *
    * Configs for affinity clustering.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; * @return The affinityClusteringConfig. */ - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig - getAffinityClusteringConfig(); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getAffinityClusteringConfig(); /** - * - * *
    * Configs for affinity clustering.
    * 
* - * - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; - * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; */ - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder - getAffinityClusteringConfigOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder getAffinityClusteringConfigOrBuilder(); /** - * - * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; - * * @return Whether the options field is set. */ boolean hasOptions(); /** - * - * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; - * * @return The options. */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptions(); /** - * - * *
    * Extra options that affect entity clustering behavior.
    * 
@@ -145,44 +89,31 @@ public interface ReconConfigOrBuilder com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder getOptionsOrBuilder(); /** - * - * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; * @return Whether the modelConfig field is set. */ boolean hasModelConfig(); /** - * - * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; * @return The modelConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getModelConfig(); /** - * - * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; - * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; */ - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder - getModelConfigOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder getModelConfigOrBuilder(); - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ClusteringConfigCase - getClusteringConfigCase(); + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ClusteringConfigCase getClusteringConfigCase(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java new file mode 100644 index 000000000000..ccf2eca234ba --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java @@ -0,0 +1,1502 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Request message for
+ * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest} + */ +public final class SearchPublicKgRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) + SearchPublicKgRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchPublicKgRequest.newBuilder() to construct. + private SearchPublicKgRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchPublicKgRequest() { + parent_ = ""; + query_ = ""; + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchPublicKgRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object query_; + /** + *
+   * Required. The literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + *
+   * Required. The literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languages_; + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_; + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + + public static final int TYPES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList types_; + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList + getTypesList() { + return types_; + } + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString + getTypesBytes(int index) { + return types_.getByteString(index); + } + + public static final int LIMIT_FIELD_NUMBER = 6; + private com.google.protobuf.Int32Value limit_; + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return limit_ != null; + } + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return The limit. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getLimit() { + return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + } + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { + return getLimit(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + for (int i = 0; i < languages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languages_.getRaw(i)); + } + for (int i = 0; i < types_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, types_.getRaw(i)); + } + if (limit_ != null) { + output.writeMessage(6, getLimit()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + { + int dataSize = 0; + for (int i = 0; i < languages_.size(); i++) { + dataSize += computeStringSizeNoTag(languages_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguagesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < types_.size(); i++) { + dataSize += computeStringSizeNoTag(types_.getRaw(i)); + } + size += dataSize; + size += 1 * getTypesList().size(); + } + if (limit_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLimit()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getLanguagesList() + .equals(other.getLanguagesList())) return false; + if (!getTypesList() + .equals(other.getTypesList())) return false; + if (hasLimit() != other.hasLimit()) return false; + if (hasLimit()) { + if (!getLimit() + .equals(other.getLimit())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLanguagesCount() > 0) { + hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getLanguagesList().hashCode(); + } + if (getTypesCount() > 0) { + hash = (37 * hash) + TYPES_FIELD_NUMBER; + hash = (53 * hash) + getTypesList().hashCode(); + } + if (hasLimit()) { + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest 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.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + java.io.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.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for
+   * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + query_ = ""; + + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (limitBuilder_ == null) { + limit_ = null; + } else { + limit_ = null; + limitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest(this); + int from_bitField0_ = bitField0_; + result.parent_ = parent_; + result.query_ = query_; + if (((bitField0_ & 0x00000001) != 0)) { + languages_ = languages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.languages_ = languages_; + if (((bitField0_ & 0x00000002) != 0)) { + types_ = types_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.types_ = types_; + if (limitBuilder_ == null) { + result.limit_ = limit_; + } else { + result.limit_ = limitBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.languages_.isEmpty()) { + if (languages_.isEmpty()) { + languages_ = other.languages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLanguagesIsMutable(); + languages_.addAll(other.languages_); + } + onChanged(); + } + if (!other.types_.isEmpty()) { + if (types_.isEmpty()) { + types_ = other.types_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTypesIsMutable(); + types_.addAll(other.types_); + } + onChanged(); + } + if (other.hasLimit()) { + mergeLimit(other.getLimit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguagesIsMutable(); + languages_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTypesIsMutable(); + types_.add(s); + break; + } // case 34 + case 50: { + input.readMessage( + getLimitFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * 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 Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + languages_ = new com.google.protobuf.LazyStringArrayList(languages_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_.getUnmodifiableView(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index to set the value at. + * @param value The languages to set. + * @return This builder for chaining. + */ + public Builder setLanguages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The languages to add. + * @return This builder for chaining. + */ + public Builder addLanguages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param values The languages to add. + * @return This builder for chaining. + */ + public Builder addAllLanguages( + java.lang.Iterable values) { + ensureLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languages_); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return This builder for chaining. + */ + public Builder clearLanguages() { + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The bytes of the languages to add. + * @return This builder for chaining. + */ + public Builder addLanguagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + types_ = new com.google.protobuf.LazyStringArrayList(types_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList + getTypesList() { + return types_.getUnmodifiableView(); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString + getTypesBytes(int index) { + return types_.getByteString(index); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param index The index to set the value at. + * @param value The types to set. + * @return This builder for chaining. + */ + public Builder setTypes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param value The types to add. + * @return This builder for chaining. + */ + public Builder addTypes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.add(value); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param values The types to add. + * @return This builder for chaining. + */ + public Builder addAllTypes( + java.lang.Iterable values) { + ensureTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, types_); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @return This builder for chaining. + */ + public Builder clearTypes() { + types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param value The bytes of the types to add. + * @return This builder for chaining. + */ + public Builder addTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTypesIsMutable(); + types_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Int32Value limit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> limitBuilder_; + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return Whether the limit field is set. + */ + public boolean hasLimit() { + return limitBuilder_ != null || limit_ != null; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return The limit. + */ + public com.google.protobuf.Int32Value getLimit() { + if (limitBuilder_ == null) { + return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + } else { + return limitBuilder_.getMessage(); + } + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder setLimit(com.google.protobuf.Int32Value value) { + if (limitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limit_ = value; + onChanged(); + } else { + limitBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder setLimit( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (limitBuilder_ == null) { + limit_ = builderForValue.build(); + onChanged(); + } else { + limitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder mergeLimit(com.google.protobuf.Int32Value value) { + if (limitBuilder_ == null) { + if (limit_ != null) { + limit_ = + com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial(); + } else { + limit_ = value; + } + onChanged(); + } else { + limitBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder clearLimit() { + if (limitBuilder_ == null) { + limit_ = null; + onChanged(); + } else { + limit_ = null; + limitBuilder_ = null; + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public com.google.protobuf.Int32Value.Builder getLimitBuilder() { + + onChanged(); + return getLimitFieldBuilder().getBuilder(); + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { + if (limitBuilder_ != null) { + return limitBuilder_.getMessageOrBuilder(); + } else { + return limit_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + } + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getLimitFieldBuilder() { + if (limitBuilder_ == null) { + limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getLimit(), + getParentForChildren(), + isClean()); + limit_ = null; + } + return limitBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) + private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchPublicKgRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java new file mode 100644 index 000000000000..85306189300a --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java @@ -0,0 +1,174 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface SearchPublicKgRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/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 literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + java.lang.String getQuery(); + /** + *
+   * Required. The literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + java.util.List + getLanguagesList(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + int getLanguagesCount(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + java.lang.String getLanguages(int index); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + com.google.protobuf.ByteString + getLanguagesBytes(int index); + + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return A list containing the types. + */ + java.util.List + getTypesList(); + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return The count of types. + */ + int getTypesCount(); + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the element to return. + * @return The types at the given index. + */ + java.lang.String getTypes(int index); + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + com.google.protobuf.ByteString + getTypesBytes(int index); + + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return Whether the limit field is set. + */ + boolean hasLimit(); + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return The limit. + */ + com.google.protobuf.Int32Value getLimit(); + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java new file mode 100644 index 000000000000..ba85e76eeafd --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java @@ -0,0 +1,1113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Response message for
+ * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse} + */ +public final class SearchPublicKgResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) + SearchPublicKgResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchPublicKgResponse.newBuilder() to construct. + private SearchPublicKgResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchPublicKgResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchPublicKgResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.Value context_; + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Value getContext() { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private com.google.protobuf.Value type_; + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return type_ != null; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.protobuf.Value getType() { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; + private com.google.protobuf.ListValue itemListElement_; + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + @java.lang.Override + public boolean hasItemListElement() { + return itemListElement_ != null; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + @java.lang.Override + public com.google.protobuf.ListValue getItemListElement() { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + return getItemListElement(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (context_ != null) { + output.writeMessage(1, getContext()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (itemListElement_ != null) { + output.writeMessage(3, getItemListElement()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getContext()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (itemListElement_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getItemListElement()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (hasItemListElement() != other.hasItemListElement()) return false; + if (hasItemListElement()) { + if (!getItemListElement() + .equals(other.getItemListElement())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasItemListElement()) { + hash = (37 * hash) + ITEM_LIST_ELEMENT_FIELD_NUMBER; + hash = (53 * hash) + getItemListElement().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse 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.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + java.io.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.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse build() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse(this); + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + if (itemListElementBuilder_ == null) { + result.itemListElement_ = itemListElement_; + } else { + result.itemListElement_ = itemListElementBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasItemListElement()) { + mergeItemListElement(other.getItemListElement()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getTypeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getItemListElementFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.Value context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_; + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + public com.google.protobuf.Value getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext( + com.google.protobuf.Value.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder mergeContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.Value.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.protobuf.Value.getDefaultInstance() : context_; + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + + private com.google.protobuf.Value type_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_; + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + public com.google.protobuf.Value getType() { + if (typeBuilder_ == null) { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType( + com.google.protobuf.Value.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder mergeType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.Value.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + com.google.protobuf.Value.getDefaultInstance() : type_; + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private com.google.protobuf.ListValue itemListElement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + public boolean hasItemListElement() { + return itemListElementBuilder_ != null || itemListElement_ != null; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + public com.google.protobuf.ListValue getItemListElement() { + if (itemListElementBuilder_ == null) { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } else { + return itemListElementBuilder_.getMessage(); + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + itemListElement_ = value; + onChanged(); + } else { + itemListElementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement( + com.google.protobuf.ListValue.Builder builderForValue) { + if (itemListElementBuilder_ == null) { + itemListElement_ = builderForValue.build(); + onChanged(); + } else { + itemListElementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder mergeItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (itemListElement_ != null) { + itemListElement_ = + com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + } else { + itemListElement_ = value; + } + onChanged(); + } else { + itemListElementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder clearItemListElement() { + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + onChanged(); + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { + + onChanged(); + return getItemListElementFieldBuilder().getBuilder(); + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + if (itemListElementBuilder_ != null) { + return itemListElementBuilder_.getMessageOrBuilder(); + } else { + return itemListElement_ == null ? + com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + getItemListElementFieldBuilder() { + if (itemListElementBuilder_ == null) { + itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), + getParentForChildren(), + isClean()); + itemListElement_ = null; + } + return itemListElementBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) + private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchPublicKgResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java new file mode 100644 index 000000000000..a43d0c4262cd --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface SearchPublicKgResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + com.google.protobuf.Value getContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + com.google.protobuf.ValueOrBuilder getContextOrBuilder(); + + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + com.google.protobuf.Value getType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); + + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + boolean hasItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + com.google.protobuf.ListValue getItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java new file mode 100644 index 000000000000..176bcfbeff91 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java @@ -0,0 +1,1502 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Request message for
+ * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchRequest} + */ +public final class SearchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) + SearchRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchRequest.newBuilder() to construct. + private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchRequest() { + parent_ = ""; + query_ = ""; + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object query_; + /** + *
+   * Required. The literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + *
+   * Required. The literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languages_; + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_; + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + + public static final int TYPES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList types_; + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList + getTypesList() { + return types_; + } + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString + getTypesBytes(int index) { + return types_.getByteString(index); + } + + public static final int LIMIT_FIELD_NUMBER = 6; + private com.google.protobuf.Int32Value limit_; + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return limit_ != null; + } + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return The limit. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getLimit() { + return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + } + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { + return getLimit(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + for (int i = 0; i < languages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languages_.getRaw(i)); + } + for (int i = 0; i < types_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, types_.getRaw(i)); + } + if (limit_ != null) { + output.writeMessage(6, getLimit()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + { + int dataSize = 0; + for (int i = 0; i < languages_.size(); i++) { + dataSize += computeStringSizeNoTag(languages_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguagesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < types_.size(); i++) { + dataSize += computeStringSizeNoTag(types_.getRaw(i)); + } + size += dataSize; + size += 1 * getTypesList().size(); + } + if (limit_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLimit()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getLanguagesList() + .equals(other.getLanguagesList())) return false; + if (!getTypesList() + .equals(other.getTypesList())) return false; + if (hasLimit() != other.hasLimit()) return false; + if (hasLimit()) { + if (!getLimit() + .equals(other.getLimit())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLanguagesCount() > 0) { + hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getLanguagesList().hashCode(); + } + if (getTypesCount() > 0) { + hash = (37 * hash) + TYPES_FIELD_NUMBER; + hash = (53 * hash) + getTypesList().hashCode(); + } + if (hasLimit()) { + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for
+   * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + query_ = ""; + + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (limitBuilder_ == null) { + limit_ = null; + } else { + limit_ = null; + limitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest build() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest(this); + int from_bitField0_ = bitField0_; + result.parent_ = parent_; + result.query_ = query_; + if (((bitField0_ & 0x00000001) != 0)) { + languages_ = languages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.languages_ = languages_; + if (((bitField0_ & 0x00000002) != 0)) { + types_ = types_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.types_ = types_; + if (limitBuilder_ == null) { + result.limit_ = limit_; + } else { + result.limit_ = limitBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.languages_.isEmpty()) { + if (languages_.isEmpty()) { + languages_ = other.languages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLanguagesIsMutable(); + languages_.addAll(other.languages_); + } + onChanged(); + } + if (!other.types_.isEmpty()) { + if (types_.isEmpty()) { + types_ = other.types_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTypesIsMutable(); + types_.addAll(other.types_); + } + onChanged(); + } + if (other.hasLimit()) { + mergeLimit(other.getLimit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguagesIsMutable(); + languages_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTypesIsMutable(); + types_.add(s); + break; + } // case 34 + case 50: { + input.readMessage( + getLimitFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * 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 Entity's parent resource.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + *
+     * Required. The literal query string for search.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + languages_ = new com.google.protobuf.LazyStringArrayList(languages_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + public com.google.protobuf.ProtocolStringList + getLanguagesList() { + return languages_.getUnmodifiableView(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + public int getLanguagesCount() { + return languages_.size(); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + public java.lang.String getLanguages(int index) { + return languages_.get(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + public com.google.protobuf.ByteString + getLanguagesBytes(int index) { + return languages_.getByteString(index); + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param index The index to set the value at. + * @param value The languages to set. + * @return This builder for chaining. + */ + public Builder setLanguages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The languages to add. + * @return This builder for chaining. + */ + public Builder addLanguages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param values The languages to add. + * @return This builder for chaining. + */ + public Builder addAllLanguages( + java.lang.Iterable values) { + ensureLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languages_); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @return This builder for chaining. + */ + public Builder clearLanguages() { + languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The list of language codes (defined in ISO 693) to run the query with,
+     * e.g. 'en'.
+     * 
+ * + * repeated string languages = 3; + * @param value The bytes of the languages to add. + * @return This builder for chaining. + */ + public Builder addLanguagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + types_ = new com.google.protobuf.LazyStringArrayList(types_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList + getTypesList() { + return types_.getUnmodifiableView(); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString + getTypesBytes(int index) { + return types_.getByteString(index); + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param index The index to set the value at. + * @param value The types to set. + * @return This builder for chaining. + */ + public Builder setTypes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param value The types to add. + * @return This builder for chaining. + */ + public Builder addTypes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.add(value); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param values The types to add. + * @return This builder for chaining. + */ + public Builder addAllTypes( + java.lang.Iterable values) { + ensureTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, types_); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @return This builder for chaining. + */ + public Builder clearTypes() { + types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Restricts returned entities with these types, e.g. Person
+     * (as defined in http://schema.org/Person). If multiple types are specified,
+     * returned entities will contain one or more of these types.
+     * 
+ * + * repeated string types = 4; + * @param value The bytes of the types to add. + * @return This builder for chaining. + */ + public Builder addTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTypesIsMutable(); + types_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Int32Value limit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> limitBuilder_; + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return Whether the limit field is set. + */ + public boolean hasLimit() { + return limitBuilder_ != null || limit_ != null; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return The limit. + */ + public com.google.protobuf.Int32Value getLimit() { + if (limitBuilder_ == null) { + return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + } else { + return limitBuilder_.getMessage(); + } + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder setLimit(com.google.protobuf.Int32Value value) { + if (limitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limit_ = value; + onChanged(); + } else { + limitBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder setLimit( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (limitBuilder_ == null) { + limit_ = builderForValue.build(); + onChanged(); + } else { + limitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder mergeLimit(com.google.protobuf.Int32Value value) { + if (limitBuilder_ == null) { + if (limit_ != null) { + limit_ = + com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial(); + } else { + limit_ = value; + } + onChanged(); + } else { + limitBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public Builder clearLimit() { + if (limitBuilder_ == null) { + limit_ = null; + onChanged(); + } else { + limit_ = null; + limitBuilder_ = null; + } + + return this; + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public com.google.protobuf.Int32Value.Builder getLimitBuilder() { + + onChanged(); + return getLimitFieldBuilder().getBuilder(); + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { + if (limitBuilder_ != null) { + return limitBuilder_.getMessageOrBuilder(); + } else { + return limit_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + } + } + /** + *
+     * Limits the number of entities to be returned.
+     * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getLimitFieldBuilder() { + if (limitBuilder_ == null) { + limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getLimit(), + getParentForChildren(), + isClean()); + limit_ = null; + } + return limitBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) + private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java new file mode 100644 index 000000000000..16f04ef5fc81 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java @@ -0,0 +1,174 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface SearchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the Entity's parent resource.
+   * Format:
+   * `projects/{project}/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 literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + java.lang.String getQuery(); + /** + *
+   * Required. The literal query string for search.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return A list containing the languages. + */ + java.util.List + getLanguagesList(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @return The count of languages. + */ + int getLanguagesCount(); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the element to return. + * @return The languages at the given index. + */ + java.lang.String getLanguages(int index); + /** + *
+   * The list of language codes (defined in ISO 693) to run the query with,
+   * e.g. 'en'.
+   * 
+ * + * repeated string languages = 3; + * @param index The index of the value to return. + * @return The bytes of the languages at the given index. + */ + com.google.protobuf.ByteString + getLanguagesBytes(int index); + + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return A list containing the types. + */ + java.util.List + getTypesList(); + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @return The count of types. + */ + int getTypesCount(); + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the element to return. + * @return The types at the given index. + */ + java.lang.String getTypes(int index); + /** + *
+   * Restricts returned entities with these types, e.g. Person
+   * (as defined in http://schema.org/Person). If multiple types are specified,
+   * returned entities will contain one or more of these types.
+   * 
+ * + * repeated string types = 4; + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + com.google.protobuf.ByteString + getTypesBytes(int index); + + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return Whether the limit field is set. + */ + boolean hasLimit(); + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + * @return The limit. + */ + com.google.protobuf.Int32Value getLimit(); + /** + *
+   * Limits the number of entities to be returned.
+   * 
+ * + * .google.protobuf.Int32Value limit = 6; + */ + com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java new file mode 100644 index 000000000000..c588913ad7bf --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java @@ -0,0 +1,1113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +/** + *
+ * Response message for
+ * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+ * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchResponse} + */ +public final class SearchResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) + SearchResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchResponse.newBuilder() to construct. + private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.Value context_; + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Value getContext() { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private com.google.protobuf.Value type_; + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return type_ != null; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.protobuf.Value getType() { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; + private com.google.protobuf.ListValue itemListElement_; + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + @java.lang.Override + public boolean hasItemListElement() { + return itemListElement_ != null; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + @java.lang.Override + public com.google.protobuf.ListValue getItemListElement() { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + return getItemListElement(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (context_ != null) { + output.writeMessage(1, getContext()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (itemListElement_ != null) { + output.writeMessage(3, getItemListElement()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getContext()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (itemListElement_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getItemListElement()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse)) { + return super.equals(obj); + } + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (hasItemListElement() != other.hasItemListElement()) return false; + if (hasItemListElement()) { + if (!getItemListElement() + .equals(other.getItemListElement())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasItemListElement()) { + hash = (37 * hash) + ITEM_LIST_ELEMENT_FIELD_NUMBER; + hash = (53 * hash) + getItemListElement().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
+   * 
+ * + * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.Builder.class); + } + + // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse build() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse(this); + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + if (itemListElementBuilder_ == null) { + result.itemListElement_ = itemListElement_; + } else { + result.itemListElement_ = itemListElementBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse) { + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse other) { + if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasItemListElement()) { + mergeItemListElement(other.getItemListElement()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getTypeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getItemListElementFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.Value context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_; + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + public com.google.protobuf.Value getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder setContext( + com.google.protobuf.Value.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder mergeContext(com.google.protobuf.Value value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.Value.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + public com.google.protobuf.ValueOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.protobuf.Value.getDefaultInstance() : context_; + } + } + /** + *
+     * The local context applicable for the response. See more details at
+     * http://www.w3.org/TR/json-ld/#context-definitions.
+     * 
+ * + * .google.protobuf.Value context = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + + private com.google.protobuf.Value type_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_; + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + public com.google.protobuf.Value getType() { + if (typeBuilder_ == null) { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder setType( + com.google.protobuf.Value.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder mergeType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.Value.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + com.google.protobuf.Value.getDefaultInstance() : type_; + } + } + /** + *
+     * The schema type of top-level JSON-LD object, e.g. ItemList.
+     * 
+ * + * .google.protobuf.Value type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private com.google.protobuf.ListValue itemListElement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + public boolean hasItemListElement() { + return itemListElementBuilder_ != null || itemListElement_ != null; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + public com.google.protobuf.ListValue getItemListElement() { + if (itemListElementBuilder_ == null) { + return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } else { + return itemListElementBuilder_.getMessage(); + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + itemListElement_ = value; + onChanged(); + } else { + itemListElementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder setItemListElement( + com.google.protobuf.ListValue.Builder builderForValue) { + if (itemListElementBuilder_ == null) { + itemListElement_ = builderForValue.build(); + onChanged(); + } else { + itemListElementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder mergeItemListElement(com.google.protobuf.ListValue value) { + if (itemListElementBuilder_ == null) { + if (itemListElement_ != null) { + itemListElement_ = + com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + } else { + itemListElement_ = value; + } + onChanged(); + } else { + itemListElementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public Builder clearItemListElement() { + if (itemListElementBuilder_ == null) { + itemListElement_ = null; + onChanged(); + } else { + itemListElement_ = null; + itemListElementBuilder_ = null; + } + + return this; + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { + + onChanged(); + return getItemListElementFieldBuilder().getBuilder(); + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { + if (itemListElementBuilder_ != null) { + return itemListElementBuilder_.getMessageOrBuilder(); + } else { + return itemListElement_ == null ? + com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + } + } + /** + *
+     * The item list of search results.
+     * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + getItemListElementFieldBuilder() { + if (itemListElementBuilder_ == null) { + itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), + getParentForChildren(), + isClean()); + itemListElement_ = null; + } + return itemListElementBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) + private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse(); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java new file mode 100644 index 000000000000..de0f7150de1c --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface SearchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + * @return The context. + */ + com.google.protobuf.Value getContext(); + /** + *
+   * The local context applicable for the response. See more details at
+   * http://www.w3.org/TR/json-ld/#context-definitions.
+   * 
+ * + * .google.protobuf.Value context = 1; + */ + com.google.protobuf.ValueOrBuilder getContextOrBuilder(); + + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + * @return The type. + */ + com.google.protobuf.Value getType(); + /** + *
+   * The schema type of top-level JSON-LD object, e.g. ItemList.
+   * 
+ * + * .google.protobuf.Value type = 2; + */ + com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); + + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return Whether the itemListElement field is set. + */ + boolean hasItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + * @return The itemListElement. + */ + com.google.protobuf.ListValue getItemListElement(); + /** + *
+   * The item list of search results.
+   * 
+ * + * .google.protobuf.ListValue item_list_element = 3; + */ + com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java new file mode 100644 index 000000000000..5a53236f2259 --- /dev/null +++ b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java @@ -0,0 +1,534 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public final class ServiceProto { + private ServiceProto() {} + 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_enterpriseknowledgegraph_v1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_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/enterpriseknowledgegraph/" + + "v1/service.proto\022(google.cloud.enterpris" + + "eknowledgegraph.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\0328google/cloud/enterprisekn" + + "owledgegraph/v1/job_state.proto\032Agoogle/" + + "cloud/enterpriseknowledgegraph/v1/operat" + + "ion_metadata.proto\032\033google/protobuf/empt" + + "y.proto\032\034google/protobuf/struct.proto\032\037g" + + "oogle/protobuf/timestamp.proto\032\036google/p" + + "rotobuf/wrappers.proto\032\027google/rpc/statu" + + "s.proto\"\266\003\n\013InputConfig\022]\n\026bigquery_inpu" + + "t_configs\030\001 \003(\0132=.google.cloud.enterpris" + + "eknowledgegraph.v1.BigQueryInputConfig\022U" + + "\n\013entity_type\030\002 \001(\0162@.google.cloud.enter" + + "priseknowledgegraph.v1.InputConfig.Entit" + + "yType\022M\n\036previous_result_bigquery_table\030" + + "\003 \001(\tB%\340A\001\372A\037\n\035bigquery.googleapis.com/T" + + "able\"\241\001\n\nEntityType\022\033\n\027ENTITY_TYPE_UNSPE" + + "CIFIED\020\000\022\016\n\006PEOPLE\020\001\032\002\010\001\022\025\n\rESTABLISHMEN" + + "T\020\002\032\002\010\001\022\020\n\010PROPERTY\020\003\032\002\010\001\022\013\n\007PRODUCT\020\004\022\020" + + "\n\014ORGANIZATION\020\005\022\022\n\016LOCAL_BUSINESS\020\006\022\n\n\006" + + "PERSON\020\007\"j\n\023BigQueryInputConfig\022=\n\016bigqu" + + "ery_table\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.google" + + "apis.com/Table\022\024\n\007gcs_uri\030\002 \001(\tB\003\340A\002\"N\n\014" + + "OutputConfig\022>\n\020bigquery_dataset\030\001 \001(\tB$" + + "\372A!\n\037bigquery.googleapis.com/Dataset\"\211\004\n" + + "\013ReconConfig\022j\n\033connected_components_con" + + "fig\030\001 \001(\0132C.google.cloud.enterpriseknowl" + + "edgegraph.v1.ConnectedComponentsConfigH\000" + + "\022h\n\032affinity_clustering_config\030\002 \001(\0132B.g" + + "oogle.cloud.enterpriseknowledgegraph.v1." + + "AffinityClusteringConfigH\000\022N\n\007options\030\003 " + + "\001(\0132=.google.cloud.enterpriseknowledgegr" + + "aph.v1.ReconConfig.Options\022W\n\014model_conf" + + "ig\030\004 \001(\0132A.google.cloud.enterpriseknowle" + + "dgegraph.v1.ReconConfig.ModelConfig\032.\n\007O" + + "ptions\022#\n\033enable_geocoding_separation\030d " + + "\001(\010\0326\n\013ModelConfig\022\022\n\nmodel_name\030\001 \001(\t\022\023" + + "\n\013version_tag\030\002 \001(\tB\023\n\021clustering_config" + + "\"5\n\031ConnectedComponentsConfig\022\030\n\020weight_" + + "threshold\030\001 \001(\002\";\n\030AffinityClusteringCon" + + "fig\022\037\n\027compression_round_count\030\001 \001(\003\"u\n\027" + + "DeleteOperationMetadata\022Z\n\017common_metada" + + "ta\030\001 \001(\0132A.google.cloud.enterpriseknowle" + + "dgegraph.v1.CommonOperationMetadata\"\352\001\n$" + + "CreateEntityReconciliationJobRequest\022W\n\006" + + "parent\030\001 \001(\tBG\340A\002\372AA\022?enterpriseknowledg" + + "egraph.googleapis.com/EntityReconciliati" + + "onJob\022i\n\031entity_reconciliation_job\030\002 \001(\013" + + "2A.google.cloud.enterpriseknowledgegraph" + + ".v1.EntityReconciliationJobB\003\340A\002\"z\n!GetE" + + "ntityReconciliationJobRequest\022U\n\004name\030\001 " + + "\001(\tBG\340A\002\372AA\n?enterpriseknowledgegraph.go" + + "ogleapis.com/EntityReconciliationJob\"\265\001\n" + + "#ListEntityReconciliationJobsRequest\022W\n\006" + + "parent\030\001 \001(\tBG\340A\002\372AA\022?enterpriseknowledg" + + "egraph.googleapis.com/EntityReconciliati" + + "onJob\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\022\022\n\npage_token\030\004 \001(\t\"\246\001\n$ListEntityRecon" + + "ciliationJobsResponse\022e\n\032entity_reconcil" + + "iation_jobs\030\001 \003(\0132A.google.cloud.enterpr" + + "iseknowledgegraph.v1.EntityReconciliatio" + + "nJob\022\027\n\017next_page_token\030\002 \001(\t\"}\n$CancelE" + + "ntityReconciliationJobRequest\022U\n\004name\030\001 " + + "\001(\tBG\340A\002\372AA\n?enterpriseknowledgegraph.go" + + "ogleapis.com/EntityReconciliationJob\"}\n$" + + "DeleteEntityReconciliationJobRequest\022U\n\004" + + "name\030\001 \001(\tBG\340A\002\372AA\n?enterpriseknowledgeg" + + "raph.googleapis.com/EntityReconciliation" + + "Job\"\331\005\n\027EntityReconciliationJob\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022P\n\014input_config\030\002 \001(\01325.googl" + + "e.cloud.enterpriseknowledgegraph.v1.Inpu" + + "tConfigB\003\340A\002\022R\n\routput_config\030\003 \001(\01326.go" + + "ogle.cloud.enterpriseknowledgegraph.v1.O" + + "utputConfigB\003\340A\002\022F\n\005state\030\004 \001(\01622.google" + + ".cloud.enterpriseknowledgegraph.v1.JobSt" + + "ateB\003\340A\003\022&\n\005error\030\005 \001(\0132\022.google.rpc.Sta" + + "tusB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022P\n\014recon_config\030\t \001(\01325.google.c" + + "loud.enterpriseknowledgegraph.v1.ReconCo" + + "nfigB\003\340A\001:\243\001\352A\237\001\n?enterpriseknowledgegra" + + "ph.googleapis.com/EntityReconciliationJo" + + "b\022\\projects/{project}/locations/{locatio" + + "n}/entityReconciliationJobs/{entity_reco" + + "nciliation_job}\"\217\001\n\rLookupRequest\022Y\n\006par" + + "ent\030\001 \001(\tBI\340A\002\372AC\022Aenterpriseknowledgegr" + + "aph.googleapis.com/CloudKnowledgeGraphEn" + + "tity\022\020\n\003ids\030\002 \003(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(" + + "\t\"\226\001\n\016LookupResponse\022\'\n\007context\030\001 \001(\0132\026." + + "google.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value\0225\n\021item_list_element" + + "\030\003 \001(\0132\032.google.protobuf.ListValue\"\314\001\n\rS" + + "earchRequest\022Y\n\006parent\030\001 \001(\tBI\340A\002\372AC\022Aen" + + "terpriseknowledgegraph.googleapis.com/Cl" + + "oudKnowledgeGraphEntity\022\022\n\005query\030\002 \001(\tB\003" + + "\340A\002\022\021\n\tlanguages\030\003 \003(\t\022\r\n\005types\030\004 \003(\t\022*\n" + + "\005limit\030\006 \001(\0132\033.google.protobuf.Int32Valu" + + "e\"\226\001\n\016SearchResponse\022\'\n\007context\030\001 \001(\0132\026." + + "google.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value\0225\n\021item_list_element" + + "\030\003 \001(\0132\032.google.protobuf.ListValue\"\230\001\n\025L" + + "ookupPublicKgRequest\022Z\n\006parent\030\001 \001(\tBJ\340A" + + "\002\372AD\022Benterpriseknowledgegraph.googleapi" + + "s.com/PublicKnowledgeGraphEntity\022\020\n\003ids\030" + + "\002 \003(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(\t\"\236\001\n\026Lookup" + + "PublicKgResponse\022\'\n\007context\030\001 \001(\0132\026.goog" + + "le.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.google" + + ".protobuf.Value\0225\n\021item_list_element\030\003 \001" + + "(\0132\032.google.protobuf.ListValue\"\325\001\n\025Searc" + + "hPublicKgRequest\022Z\n\006parent\030\001 \001(\tBJ\340A\002\372AD" + + "\022Benterpriseknowledgegraph.googleapis.co" + + "m/PublicKnowledgeGraphEntity\022\022\n\005query\030\002 " + + "\001(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(\t\022\r\n\005types\030\004 \003" + + "(\t\022*\n\005limit\030\006 \001(\0132\033.google.protobuf.Int3" + + "2Value\"\236\001\n\026SearchPublicKgResponse\022\'\n\007con" + + "text\030\001 \001(\0132\026.google.protobuf.Value\022$\n\004ty" + + "pe\030\002 \001(\0132\026.google.protobuf.Value\0225\n\021item" + + "_list_element\030\003 \001(\0132\032.google.protobuf.Li" + + "stValue2\235\022\n\037EnterpriseKnowledgeGraphServ" + + "ice\022\267\002\n\035CreateEntityReconciliationJob\022N." + + "google.cloud.enterpriseknowledgegraph.v1" + + ".CreateEntityReconciliationJobRequest\032A." + + "google.cloud.enterpriseknowledgegraph.v1" + + ".EntityReconciliationJob\"\202\001\202\323\344\223\002Y\"\022\022* Date: Wed, 9 Nov 2022 19:55:39 +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 --- ...EnterpriseKnowledgeGraphServiceClient.java | 0 ...terpriseKnowledgeGraphServiceSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 .../EnterpriseKnowledgeGraphServiceStub.java | 0 ...riseKnowledgeGraphServiceStubSettings.java | 0 ...eKnowledgeGraphServiceCallableFactory.java | 0 ...pcEnterpriseKnowledgeGraphServiceStub.java | 1 - ...eKnowledgeGraphServiceCallableFactory.java | 0 ...onEnterpriseKnowledgeGraphServiceStub.java | 0 ...owledgeGraphServiceClientHttpJsonTest.java | 0 ...rpriseKnowledgeGraphServiceClientTest.java | 0 .../MockEnterpriseKnowledgeGraphService.java | 0 ...ckEnterpriseKnowledgeGraphServiceImpl.java | 0 .../EnterpriseKnowledgeGraphServiceGrpc.java | 1433 ++++++++++++++ .../v1/AffinityClusteringConfig.java | 324 ++-- .../v1/AffinityClusteringConfigOrBuilder.java | 38 + .../v1/BigQueryInputConfig.java | 457 +++-- .../v1/BigQueryInputConfigOrBuilder.java | 79 + .../CancelEntityReconciliationJobRequest.java | 479 +++-- ...tityReconciliationJobRequestOrBuilder.java | 58 + .../v1/CloudKnowledgeGraphEntityName.java | 0 .../v1/CommonOperationMetadata.java | 638 +++--- .../v1/CommonOperationMetadataOrBuilder.java | 40 +- .../v1/ConnectedComponentsConfig.java | 327 ++-- .../ConnectedComponentsConfigOrBuilder.java | 38 + .../CreateEntityReconciliationJobRequest.java | 648 ++++--- ...tityReconciliationJobRequestOrBuilder.java | 100 + .../DeleteEntityReconciliationJobRequest.java | 479 +++-- ...tityReconciliationJobRequestOrBuilder.java | 58 + .../v1/DeleteOperationMetadata.java | 432 +++-- .../v1/DeleteOperationMetadataOrBuilder.java | 38 +- .../v1/EntityReconciliationJob.java | 1345 ++++++++----- .../v1/EntityReconciliationJobName.java | 0 .../v1/EntityReconciliationJobOrBuilder.java | 160 +- .../v1/GetEntityReconciliationJobRequest.java | 469 +++-- ...tityReconciliationJobRequestOrBuilder.java | 58 + .../v1/InputConfig.java | 844 +++++--- .../v1/InputConfigOrBuilder.java | 83 +- .../enterpriseknowledgegraph/v1/JobState.java | 133 +- .../v1/JobStateProto.java | 63 + .../ListEntityReconciliationJobsRequest.java | 664 ++++--- ...ityReconciliationJobsRequestOrBuilder.java | 56 +- .../ListEntityReconciliationJobsResponse.java | 738 ++++--- ...tyReconciliationJobsResponseOrBuilder.java | 69 +- .../v1/LocationName.java | 0 .../v1/LookupPublicKgRequest.java | 600 +++--- .../v1/LookupPublicKgRequestOrBuilder.java | 71 +- .../v1/LookupPublicKgResponse.java | 524 +++-- .../v1/LookupPublicKgResponseOrBuilder.java | 42 +- .../v1/LookupRequest.java | 568 +++--- .../v1/LookupRequestOrBuilder.java | 71 +- .../v1/LookupResponse.java | 492 +++-- .../v1/LookupResponseOrBuilder.java | 42 +- .../v1/OperationMetadataProto.java | 82 + .../v1/OutputConfig.java | 330 ++-- .../v1/OutputConfigOrBuilder.java | 27 +- .../v1/PublicKnowledgeGraphEntityName.java | 0 .../v1/ReconConfig.java | 1702 +++++++++++------ .../v1/ReconConfigOrBuilder.java | 101 +- .../v1/SearchPublicKgRequest.java | 753 +++++--- .../v1/SearchPublicKgRequestOrBuilder.java | 88 +- .../v1/SearchPublicKgResponse.java | 524 +++-- .../v1/SearchPublicKgResponseOrBuilder.java | 42 +- .../v1/SearchRequest.java | 721 ++++--- .../v1/SearchRequestOrBuilder.java | 88 +- .../v1/SearchResponse.java | 492 +++-- .../v1/SearchResponseOrBuilder.java | 42 +- .../v1/ServiceProto.java | 588 ++++++ .../v1/job_state.proto | 0 .../v1/operation_metadata.proto | 0 .../enterpriseknowledgegraph/v1/service.proto | 0 .../EnterpriseKnowledgeGraphServiceGrpc.java | 1007 ---------- .../v1/AffinityClusteringConfigOrBuilder.java | 19 - .../v1/BigQueryInputConfigOrBuilder.java | 49 - ...tityReconciliationJobRequestOrBuilder.java | 33 - .../ConnectedComponentsConfigOrBuilder.java | 19 - ...tityReconciliationJobRequestOrBuilder.java | 60 - ...tityReconciliationJobRequestOrBuilder.java | 33 - ...tityReconciliationJobRequestOrBuilder.java | 33 - .../v1/JobStateProto.java | 52 - .../v1/OperationMetadataProto.java | 67 - .../v1/ServiceProto.java | 534 ------ 83 files changed, 12640 insertions(+), 7606 deletions(-) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java (99%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java (99%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java (100%) create mode 100644 java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java (60%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java (63%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java (51%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java (67%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java (60%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java (52%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java (51%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java (61%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java (54%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java (64%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java (67%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java (52%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java (63%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java (51%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java (72%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java (60%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java (59%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java (56%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java (50%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java (68%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java (68%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java (70%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java (76%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java (70%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java (68%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java (72%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java (76%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java (66%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java (52%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java (65%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java (58%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java (71%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java (75%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java (70%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java (76%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java (72%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java (75%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java (72%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java (76%) create mode 100644 java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/proto/google/cloud/enterpriseknowledgegraph/v1/job_state.proto (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/proto/google/cloud/enterpriseknowledgegraph/v1/operation_metadata.proto (100%) rename {owl-bot-staging/java-enterpriseknowledgegraph/v1 => java-enterpriseknowledgegraph}/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/proto/google/cloud/enterpriseknowledgegraph/v1/service.proto (100%) delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java delete mode 100644 owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java similarity index 99% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java index f35bdecb66cf..a67768e59fb8 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.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.enterpriseknowledgegraph.v1.stub.EnterpriseKnowledgeGraphServiceStubSettings; diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/package-info.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStub.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceCallableFactory.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java similarity index 99% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java index 24fdf1ac054e..50c7fd7b7b16 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/GrpcEnterpriseKnowledgeGraphServiceStub.java @@ -45,7 +45,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-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceCallableFactory.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/HttpJsonEnterpriseKnowledgeGraphServiceStub.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClientTest.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphService.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java rename to java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/test/java/com/google/cloud/enterpriseknowledgegraph/v1/MockEnterpriseKnowledgeGraphServiceImpl.java diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java new file mode 100644 index 000000000000..bd73c781b67b --- /dev/null +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java @@ -0,0 +1,1433 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.enterpriseknowledgegraph.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * APIs for enterprise knowledge graph product.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/enterpriseknowledgegraph/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EnterpriseKnowledgeGraphServiceGrpc { + + private EnterpriseKnowledgeGraphServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getCreateEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEntityReconciliationJob", + requestType = + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getCreateEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getCreateEntityReconciliationJobMethod; + if ((getCreateEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getCreateEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod = + getCreateEntityReconciliationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1 + .CreateEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "CreateEntityReconciliationJob")) + .build(); + } + } + } + return getCreateEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getGetEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEntityReconciliationJob", + requestType = + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getGetEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getGetEntityReconciliationJobMethod; + if ((getGetEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getGetEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod = + getGetEntityReconciliationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1 + .GetEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "GetEntityReconciliationJob")) + .build(); + } + } + } + return getGetEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> + getListEntityReconciliationJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEntityReconciliationJobs", + requestType = + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, + responseType = + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> + getListEntityReconciliationJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> + getListEntityReconciliationJobsMethod; + if ((getListEntityReconciliationJobsMethod = + EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getListEntityReconciliationJobsMethod = + EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod = + getListEntityReconciliationJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListEntityReconciliationJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "ListEntityReconciliationJobs")) + .build(); + } + } + } + return getListEntityReconciliationJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, + com.google.protobuf.Empty> + getCancelEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelEntityReconciliationJob", + requestType = + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, + com.google.protobuf.Empty> + getCancelEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, + com.google.protobuf.Empty> + getCancelEntityReconciliationJobMethod; + if ((getCancelEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getCancelEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod = + getCancelEntityReconciliationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CancelEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1 + .CancelEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "CancelEntityReconciliationJob")) + .build(); + } + } + } + return getCancelEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, + com.google.protobuf.Empty> + getDeleteEntityReconciliationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEntityReconciliationJob", + requestType = + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, + com.google.protobuf.Empty> + getDeleteEntityReconciliationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, + com.google.protobuf.Empty> + getDeleteEntityReconciliationJobMethod; + if ((getDeleteEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getDeleteEntityReconciliationJobMethod = + EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod = + getDeleteEntityReconciliationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteEntityReconciliationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1 + .DeleteEntityReconciliationJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "DeleteEntityReconciliationJob")) + .build(); + } + } + } + return getDeleteEntityReconciliationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse> + getLookupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Lookup", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse> + getLookupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse> + getLookupMethod; + if ((getLookupMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getLookupMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod = + getLookupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Lookup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("Lookup")) + .build(); + } + } + } + return getLookupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse> + getSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Search", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse> + getSearchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse> + getSearchMethod; + if ((getSearchMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod) == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getSearchMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod) == null) { + EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod = + getSearchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("Search")) + .build(); + } + } + } + return getSearchMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse> + getLookupPublicKgMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LookupPublicKg", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse> + getLookupPublicKgMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse> + getLookupPublicKgMethod; + if ((getLookupPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getLookupPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod = + getLookupPublicKgMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupPublicKg")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "LookupPublicKg")) + .build(); + } + } + } + return getLookupPublicKgMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse> + getSearchPublicKgMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchPublicKg", + requestType = com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, + responseType = com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse> + getSearchPublicKgMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse> + getSearchPublicKgMethod; + if ((getSearchPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod) + == null) { + synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { + if ((getSearchPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod) + == null) { + EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod = + getSearchPublicKgMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchPublicKg")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier( + "SearchPublicKg")) + .build(); + } + } + } + return getSearchPublicKgMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EnterpriseKnowledgeGraphServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnterpriseKnowledgeGraphServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); + } + }; + return EnterpriseKnowledgeGraphServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EnterpriseKnowledgeGraphServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnterpriseKnowledgeGraphServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); + } + }; + return EnterpriseKnowledgeGraphServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EnterpriseKnowledgeGraphServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnterpriseKnowledgeGraphServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); + } + }; + return EnterpriseKnowledgeGraphServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public abstract static class EnterpriseKnowledgeGraphServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public void createEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEntityReconciliationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public void getEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEntityReconciliationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public void listEntityReconciliationJobs( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEntityReconciliationJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public void cancelEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelEntityReconciliationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public void deleteEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEntityReconciliationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public void lookup( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public void search( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); + } + + /** + * + * + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public void lookupPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLookupPublicKgMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public void searchPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchPublicKgMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1 + .CreateEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( + this, METHODID_CREATE_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getGetEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1 + .GetEntityReconciliationJobRequest, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( + this, METHODID_GET_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getListEntityReconciliationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsRequest, + com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsResponse>( + this, METHODID_LIST_ENTITY_RECONCILIATION_JOBS))) + .addMethod( + getCancelEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1 + .CancelEntityReconciliationJobRequest, + com.google.protobuf.Empty>(this, METHODID_CANCEL_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getDeleteEntityReconciliationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1 + .DeleteEntityReconciliationJobRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ENTITY_RECONCILIATION_JOB))) + .addMethod( + getLookupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse>( + this, METHODID_LOOKUP))) + .addMethod( + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse>( + this, METHODID_SEARCH))) + .addMethod( + getLookupPublicKgMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse>( + this, METHODID_LOOKUP_PUBLIC_KG))) + .addMethod( + getSearchPublicKgMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest, + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse>( + this, METHODID_SEARCH_PUBLIC_KG))) + .build(); + } + } + + /** + * + * + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static final class EnterpriseKnowledgeGraphServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private EnterpriseKnowledgeGraphServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnterpriseKnowledgeGraphServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public void createEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public void getEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public void listEntityReconciliationJobs( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public void cancelEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public void deleteEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public void lookup( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public void search( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public void lookupPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupPublicKgMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public void searchPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchPublicKgMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static final class EnterpriseKnowledgeGraphServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private EnterpriseKnowledgeGraphServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnterpriseKnowledgeGraphServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + createEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + listEntityReconciliationJobs( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEntityReconciliationJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public com.google.protobuf.Empty cancelEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public com.google.protobuf.Empty deleteEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEntityReconciliationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse lookup( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse search( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse lookupPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupPublicKgMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse searchPublicKg( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchPublicKgMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * APIs for enterprise knowledge graph product.
+   * 
+ */ + public static final class EnterpriseKnowledgeGraphServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private EnterpriseKnowledgeGraphServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnterpriseKnowledgeGraphServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
+     * will right away be attempted to start.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + createEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets a EntityReconciliationJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + getEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Entity Reconciliation Jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse> + listEntityReconciliationJobs( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Cancels a EntityReconciliationJob. Success of cancellation is not
+     * guaranteed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + cancelEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a EntityReconciliationJob.
+     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
+     * CANCELLED.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Finds the Cloud KG entities with CKG ID(s).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse> + lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches the Cloud KG entities with entity name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse> + search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Finds the public KG entities with public KG ID(s).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse> + lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupPublicKgMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches the public KG entities with entity name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse> + searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchPublicKgMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ENTITY_RECONCILIATION_JOB = 0; + private static final int METHODID_GET_ENTITY_RECONCILIATION_JOB = 1; + private static final int METHODID_LIST_ENTITY_RECONCILIATION_JOBS = 2; + private static final int METHODID_CANCEL_ENTITY_RECONCILIATION_JOB = 3; + private static final int METHODID_DELETE_ENTITY_RECONCILIATION_JOB = 4; + private static final int METHODID_LOOKUP = 5; + private static final int METHODID_SEARCH = 6; + private static final int METHODID_LOOKUP_PUBLIC_KG = 7; + private static final int METHODID_SEARCH_PUBLIC_KG = 8; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EnterpriseKnowledgeGraphServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EnterpriseKnowledgeGraphServiceImplBase 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_ENTITY_RECONCILIATION_JOB: + serviceImpl.createEntityReconciliationJob( + (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>) + responseObserver); + break; + case METHODID_GET_ENTITY_RECONCILIATION_JOB: + serviceImpl.getEntityReconciliationJob( + (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>) + responseObserver); + break; + case METHODID_LIST_ENTITY_RECONCILIATION_JOBS: + serviceImpl.listEntityReconciliationJobs( + (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsResponse>) + responseObserver); + break; + case METHODID_CANCEL_ENTITY_RECONCILIATION_JOB: + serviceImpl.cancelEntityReconciliationJob( + (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ENTITY_RECONCILIATION_JOB: + serviceImpl.deleteEntityReconciliationJob( + (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOOKUP: + serviceImpl.lookup( + (com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse>) + responseObserver); + break; + case METHODID_SEARCH: + serviceImpl.search( + (com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse>) + responseObserver); + break; + case METHODID_LOOKUP_PUBLIC_KG: + serviceImpl.lookupPublicKg( + (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse>) + responseObserver); + break; + case METHODID_SEARCH_PUBLIC_KG: + serviceImpl.searchPublicKg( + (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse>) + 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 EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EnterpriseKnowledgeGraphService"); + } + } + + private static final class EnterpriseKnowledgeGraphServiceFileDescriptorSupplier + extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier { + EnterpriseKnowledgeGraphServiceFileDescriptorSupplier() {} + } + + private static final class EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier + extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier(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 (EnterpriseKnowledgeGraphServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new EnterpriseKnowledgeGraphServiceFileDescriptorSupplier()) + .addMethod(getCreateEntityReconciliationJobMethod()) + .addMethod(getGetEntityReconciliationJobMethod()) + .addMethod(getListEntityReconciliationJobsMethod()) + .addMethod(getCancelEntityReconciliationJobMethod()) + .addMethod(getDeleteEntityReconciliationJobMethod()) + .addMethod(getLookupMethod()) + .addMethod(getSearchMethod()) + .addMethod(getLookupPublicKgMethod()) + .addMethod(getSearchPublicKgMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java similarity index 60% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java index 891e6ab0bb5c..950ba0dda5d9 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Options for affinity clustering.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig} */ -public final class AffinityClusteringConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AffinityClusteringConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) AffinityClusteringConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AffinityClusteringConfig.newBuilder() to construct. private AffinityClusteringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AffinityClusteringConfig() { - } + + private AffinityClusteringConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AffinityClusteringConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); } public static final int COMPRESSION_ROUND_COUNT_FIELD_NUMBER = 1; private long compressionRoundCount_; /** + * + * *
    * Number of iterations to perform. Default value is 1.
    * 
* * int64 compression_round_count = 1; + * * @return The compressionRoundCount. */ @java.lang.Override @@ -63,6 +84,7 @@ public long getCompressionRoundCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,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 (compressionRoundCount_ != 0L) { output.writeInt64(1, compressionRoundCount_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (compressionRoundCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, compressionRoundCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, compressionRoundCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,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.enterpriseknowledgegraph.v1.AffinityClusteringConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) obj; - if (getCompressionRoundCount() - != other.getCompressionRoundCount()) return false; + if (getCompressionRoundCount() != other.getCompressionRoundCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COMPRESSION_ROUND_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCompressionRoundCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompressionRoundCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 affinity clustering.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.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(); @@ -261,14 +289,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } @java.lang.Override @@ -282,7 +312,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig bui @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig(this); result.compressionRoundCount_ = compressionRoundCount_; onBuilt(); return result; @@ -292,46 +323,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig 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.enterpriseknowledgegraph.v1.AffinityClusteringConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance()) return this; if (other.getCompressionRoundCount() != 0L) { setCompressionRoundCount(other.getCompressionRoundCount()); } @@ -361,17 +397,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - compressionRoundCount_ = input.readInt64(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + compressionRoundCount_ = input.readInt64(); + + 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) { @@ -382,13 +420,16 @@ public Builder mergeFrom( return this; } - private long compressionRoundCount_ ; + private long compressionRoundCount_; /** + * + * *
      * Number of iterations to perform. Default value is 1.
      * 
* * int64 compression_round_count = 1; + * * @return The compressionRoundCount. */ @java.lang.Override @@ -396,37 +437,43 @@ public long getCompressionRoundCount() { return compressionRoundCount_; } /** + * + * *
      * Number of iterations to perform. Default value is 1.
      * 
* * int64 compression_round_count = 1; + * * @param value The compressionRoundCount to set. * @return This builder for chaining. */ public Builder setCompressionRoundCount(long value) { - + compressionRoundCount_ = value; onChanged(); return this; } /** + * + * *
      * Number of iterations to perform. Default value is 1.
      * 
* * int64 compression_round_count = 1; + * * @return This builder for chaining. */ public Builder clearCompressionRoundCount() { - + compressionRoundCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -436,41 +483,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AffinityClusteringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AffinityClusteringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -482,9 +531,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java new file mode 100644 index 000000000000..e30d164e5336 --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface AffinityClusteringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of iterations to perform. Default value is 1.
+   * 
+ * + * int64 compression_round_count = 1; + * + * @return The compressionRoundCount. + */ + long getCompressionRoundCount(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java similarity index 63% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java index ec4619708627..f62c62e94c95 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * The input config for BigQuery tables.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig} */ -public final class BigQueryInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) BigQueryInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryInputConfig.newBuilder() to construct. private BigQueryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryInputConfig() { bigqueryTable_ = ""; gcsUri_ = ""; @@ -26,37 +44,43 @@ private BigQueryInputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryInputConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); } public static final int BIGQUERY_TABLE_FIELD_NUMBER = 1; private volatile java.lang.Object bigqueryTable_; /** + * + * *
    * Required. Format is `projects/*/datasets/*/tables/*`.
    * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bigqueryTable. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getBigqueryTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryTable_ = s; return s; } } /** + * + * *
    * Required. Format is `projects/*/datasets/*/tables/*`.
    * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for bigqueryTable. */ @java.lang.Override - public com.google.protobuf.ByteString - getBigqueryTableBytes() { + public com.google.protobuf.ByteString getBigqueryTableBytes() { java.lang.Object ref = bigqueryTable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigqueryTable_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getBigqueryTable() { public static final int GCS_URI_FIELD_NUMBER = 2; private volatile java.lang.Object gcsUri_; /** + * + * *
    * Required. Schema mapping file
    * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcsUri. */ @java.lang.Override @@ -111,29 +140,29 @@ public java.lang.String getGcsUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsUri_ = s; return s; } } /** + * + * *
    * Required. Schema mapping file
    * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcsUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsUriBytes() { + public com.google.protobuf.ByteString getGcsUriBytes() { java.lang.Object ref = gcsUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsUri_ = b; return b; } else { @@ -142,6 +171,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigqueryTable_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bigqueryTable_); } @@ -184,17 +213,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) obj; - if (!getBigqueryTable() - .equals(other.getBigqueryTable())) return false; - if (!getGcsUri() - .equals(other.getGcsUri())) return false; + if (!getBigqueryTable().equals(other.getBigqueryTable())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,129 +244,136 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The input config for BigQuery tables.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +385,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig + getDefaultInstanceForType() { return com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance(); } @@ -371,7 +407,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig build() @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig(this); result.bigqueryTable_ = bigqueryTable_; result.gcsUri_ = gcsUri_; onBuilt(); @@ -382,46 +419,50 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig 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.enterpriseknowledgegraph.v1.BigQueryInputConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig)other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()) + return this; if (!other.getBigqueryTable().isEmpty()) { bigqueryTable_ = other.bigqueryTable_; onChanged(); @@ -456,22 +497,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - bigqueryTable_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - gcsUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + bigqueryTable_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + gcsUri_ = 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) { @@ -484,18 +528,22 @@ public Builder mergeFrom( private java.lang.Object bigqueryTable_ = ""; /** + * + * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bigqueryTable. */ public java.lang.String getBigqueryTable() { java.lang.Object ref = bigqueryTable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryTable_ = s; return s; @@ -504,20 +552,23 @@ public java.lang.String getBigqueryTable() { } } /** + * + * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for bigqueryTable. */ - public com.google.protobuf.ByteString - getBigqueryTableBytes() { + public com.google.protobuf.ByteString getBigqueryTableBytes() { java.lang.Object ref = bigqueryTable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigqueryTable_ = b; return b; } else { @@ -525,54 +576,67 @@ public java.lang.String getBigqueryTable() { } } /** + * + * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bigqueryTable to set. * @return This builder for chaining. */ - public Builder setBigqueryTable( - java.lang.String value) { + public Builder setBigqueryTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bigqueryTable_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBigqueryTable() { - + bigqueryTable_ = getDefaultInstance().getBigqueryTable(); onChanged(); return this; } /** + * + * *
      * Required. Format is `projects/*/datasets/*/tables/*`.
      * 
* - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for bigqueryTable to set. * @return This builder for chaining. */ - public Builder setBigqueryTableBytes( - com.google.protobuf.ByteString value) { + public Builder setBigqueryTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigqueryTable_ = value; onChanged(); return this; @@ -580,18 +644,20 @@ public Builder setBigqueryTableBytes( private java.lang.Object gcsUri_ = ""; /** + * + * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { java.lang.Object ref = gcsUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsUri_ = s; return s; @@ -600,20 +666,21 @@ public java.lang.String getGcsUri() { } } /** + * + * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcsUri. */ - public com.google.protobuf.ByteString - getGcsUriBytes() { + public com.google.protobuf.ByteString getGcsUriBytes() { java.lang.Object ref = gcsUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsUri_ = b; return b; } else { @@ -621,61 +688,68 @@ public java.lang.String getGcsUri() { } } /** + * + * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGcsUri() { - + gcsUri_ = getDefaultInstance().getGcsUri(); onChanged(); return this; } /** + * + * *
      * Required. Schema mapping file
      * 
* * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = 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,41 +759,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -731,9 +807,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java new file mode 100644 index 000000000000..90687059d0e7 --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java @@ -0,0 +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/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface BigQueryInputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format is `projects/*/datasets/*/tables/*`.
+   * 
+ * + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bigqueryTable. + */ + java.lang.String getBigqueryTable(); + /** + * + * + *
+   * Required. Format is `projects/*/datasets/*/tables/*`.
+   * 
+ * + * + * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for bigqueryTable. + */ + com.google.protobuf.ByteString getBigqueryTableBytes(); + + /** + * + * + *
+   * Required. Schema mapping file
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + /** + * + * + *
+   * Required. Schema mapping file
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java similarity index 51% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java index cdb285116799..171f1f99522a 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequest.java @@ -1,63 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for CancelEntityReconciliationJob.
  * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} */ -public final class CancelEntityReconciliationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CancelEntityReconciliationJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) CancelEntityReconciliationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CancelEntityReconciliationJobRequest.newBuilder() to construct. - private CancelEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CancelEntityReconciliationJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CancelEntityReconciliationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CancelEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * string name = 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 +94,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 EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * string name = 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 +129,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -135,15 +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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest)) { + if (!(obj + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +194,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - java.io.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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom( + java.io.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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CancelEntityReconciliationJob.
    * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + .class, + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + .Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.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(); @@ -295,19 +344,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest build() { - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + build() { + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -315,8 +368,11 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJo } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest(this); + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest result = + new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest( + this); result.name_ = name_; onBuilt(); return result; @@ -326,46 +382,54 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest)other); + if (other + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) { + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +460,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 +485,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string name = 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 +511,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string name = 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 +537,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * 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,41 +620,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1 + .CancelEntityReconciliationJobRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -580,9 +670,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..da1422569bdf --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.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/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface CancelEntityReconciliationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * + * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java similarity index 67% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java index 282cbea0c0e9..437157a8a22c 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadata.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/enterpriseknowledgegraph/v1/operation_metadata.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * The common metadata for long running operations.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata} */ -public final class CommonOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) CommonOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonOperationMetadata.newBuilder() to construct. private CommonOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CommonOperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonOperationMetadata(); } @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.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); } /** + * + * *
    * State of the longrunning operation.
    * 
* * Protobuf enum {@code google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -66,6 +88,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Operation is still running.
      * 
@@ -74,6 +98,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * Operation is being cancelled.
      * 
@@ -82,6 +108,8 @@ public enum State */ CANCELLING(2), /** + * + * *
      * Operation succeeded.
      * 
@@ -90,6 +118,8 @@ public enum State */ SUCCEEDED(3), /** + * + * *
      * Operation failed.
      * 
@@ -98,6 +128,8 @@ public enum State */ FAILED(4), /** + * + * *
      * Operation is cancelled.
      * 
@@ -106,6 +138,8 @@ public enum State */ CANCELLED(5), /** + * + * *
      * Operation is pending not running yet.
      * 
@@ -117,6 +151,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -125,6 +161,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Operation is still running.
      * 
@@ -133,6 +171,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * Operation is being cancelled.
      * 
@@ -141,6 +181,8 @@ public enum State */ public static final int CANCELLING_VALUE = 2; /** + * + * *
      * Operation succeeded.
      * 
@@ -149,6 +191,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 3; /** + * + * *
      * Operation failed.
      * 
@@ -157,6 +201,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * Operation is cancelled.
      * 
@@ -165,6 +211,8 @@ public enum State */ public static final int CANCELLED_VALUE = 5; /** + * + * *
      * Operation is pending not running yet.
      * 
@@ -173,7 +221,6 @@ public enum State */ public static final int PENDING_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -198,53 +245,59 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return CANCELLING; - case 3: return SUCCEEDED; - case 4: return FAILED; - case 5: return CANCELLED; - case 6: return PENDING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return CANCELLING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + case 5: + return CANCELLED; + case 6: + return 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.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.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; @@ -264,38 +317,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * * @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 operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -303,11 +370,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -315,6 +385,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The creation time of the operation.
    * 
@@ -329,11 +401,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -341,11 +416,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -353,6 +431,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The last update time of the operation.
    * 
@@ -365,6 +445,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,9 +457,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State + .STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -396,17 +479,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -416,23 +499,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.enterpriseknowledgegraph.v1.CommonOperationMetadata)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other = (com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) obj; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other = + (com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) obj; if (state_ != other.state_) 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 (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -461,129 +543,138 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 common metadata for long running operations.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.class, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.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(); @@ -605,14 +696,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.OperationMetadataProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + .getDefaultInstance(); } @java.lang.Override @@ -626,7 +719,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata result = new com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata(this); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata result = + new com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -646,46 +740,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + .getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -721,31 +820,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().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) { @@ -758,73 +857,99 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * + * * @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 operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * + * * @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 operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State result = + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.valueOf( + state_); + return result == null + ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State value) { + public Builder setState( + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -832,34 +957,47 @@ public Builder clearState() { 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_; /** + * + * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The creation time of the operation.
      * 
@@ -880,14 +1018,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -898,6 +1037,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The creation time of the operation.
      * 
@@ -908,7 +1049,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -920,6 +1061,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The creation time of the operation.
      * 
@@ -938,6 +1081,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The creation time of the operation.
      * 
@@ -945,11 +1090,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 2; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The creation time of the operation.
      * 
@@ -960,11 +1107,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The creation time of the operation.
      * 
@@ -972,14 +1122,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -987,34 +1140,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1035,14 +1201,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - 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(); @@ -1053,6 +1220,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1063,7 +1232,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1075,6 +1244,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1093,6 +1264,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1100,11 +1273,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1115,11 +1290,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1127,21 +1305,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1151,41 +1332,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) - private static final com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,9 +1380,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java index 3de02f1fd3ce..ab3ae56335ee 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CommonOperationMetadataOrBuilder.java @@ -1,50 +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/enterpriseknowledgegraph/v1/operation_metadata.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface CommonOperationMetadataOrBuilder extends +public interface CommonOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State getState(); /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The creation time of the operation.
    * 
@@ -54,24 +84,32 @@ public interface CommonOperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The last update time of the operation.
    * 
diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java similarity index 60% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java index 4fd687ed002a..8297f02ff5a6 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Options for connected components.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig} */ -public final class ConnectedComponentsConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConnectedComponentsConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) ConnectedComponentsConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConnectedComponentsConfig.newBuilder() to construct. private ConnectedComponentsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConnectedComponentsConfig() { - } + + private ConnectedComponentsConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConnectedComponentsConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); } public static final int WEIGHT_THRESHOLD_FIELD_NUMBER = 1; private float weightThreshold_; /** + * + * *
    * Threshold used for connected components. Default value is 0.85.
    * 
* * float weight_threshold = 1; + * * @return The weightThreshold. */ @java.lang.Override @@ -63,6 +84,7 @@ public float getWeightThreshold() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(weightThreshold_) != 0) { output.writeFloat(1, weightThreshold_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(weightThreshold_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, weightThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, weightThreshold_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,16 +120,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.enterpriseknowledgegraph.v1.ConnectedComponentsConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) obj; if (java.lang.Float.floatToIntBits(getWeightThreshold()) - != java.lang.Float.floatToIntBits( - other.getWeightThreshold())) return false; + != java.lang.Float.floatToIntBits(other.getWeightThreshold())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -122,137 +142,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getWeightThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getWeightThreshold()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 connected components.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.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(); @@ -262,19 +290,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig build() { - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -283,7 +314,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig bu @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig(this); result.weightThreshold_ = weightThreshold_; onBuilt(); return result; @@ -293,46 +325,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance()) return this; if (other.getWeightThreshold() != 0F) { setWeightThreshold(other.getWeightThreshold()); } @@ -362,17 +399,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - weightThreshold_ = input.readFloat(); - - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + weightThreshold_ = input.readFloat(); + + break; + } // case 13 + default: + { + 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,13 +422,16 @@ public Builder mergeFrom( return this; } - private float weightThreshold_ ; + private float weightThreshold_; /** + * + * *
      * Threshold used for connected components. Default value is 0.85.
      * 
* * float weight_threshold = 1; + * * @return The weightThreshold. */ @java.lang.Override @@ -397,37 +439,43 @@ public float getWeightThreshold() { return weightThreshold_; } /** + * + * *
      * Threshold used for connected components. Default value is 0.85.
      * 
* * float weight_threshold = 1; + * * @param value The weightThreshold to set. * @return This builder for chaining. */ public Builder setWeightThreshold(float value) { - + weightThreshold_ = value; onChanged(); return this; } /** + * + * *
      * Threshold used for connected components. Default value is 0.85.
      * 
* * float weight_threshold = 1; + * * @return This builder for chaining. */ public Builder clearWeightThreshold() { - + weightThreshold_ = 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); } @@ -437,41 +485,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectedComponentsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedComponentsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -483,9 +533,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java new file mode 100644 index 000000000000..9019eff4a6e6 --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface ConnectedComponentsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Threshold used for connected components. Default value is 0.85.
+   * 
+ * + * float weight_threshold = 1; + * + * @return The weightThreshold. + */ + float getWeightThreshold(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java similarity index 52% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java index f2eff630d293..4364931a55cd 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequest.java @@ -1,63 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for CreateEntityReconciliationJob.
  * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} */ -public final class CreateEntityReconciliationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateEntityReconciliationJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) CreateEntityReconciliationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateEntityReconciliationJobRequest.newBuilder() to construct. - private CreateEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateEntityReconciliationJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateEntityReconciliationJobRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + .Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the Location to create the
    * EntityReconciliationJob in. Format:
    * `projects/{project}/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,31 +94,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Location to create the
    * EntityReconciliationJob in. Format:
    * `projects/{project}/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,13 +129,19 @@ public java.lang.String getParent() { } public static final int ENTITY_RECONCILIATION_JOB_FIELD_NUMBER = 2; - private com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entityReconciliationJob_; + private com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + entityReconciliationJob_; /** + * + * *
    * Required. The EntityReconciliationJob to create.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the entityReconciliationJob field is set. */ @java.lang.Override @@ -113,30 +149,44 @@ public boolean hasEntityReconciliationJob() { return entityReconciliationJob_ != null; } /** + * + * *
    * Required. The EntityReconciliationJob to create.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The entityReconciliationJob. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob() { - return entityReconciliationJob_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() : entityReconciliationJob_; + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getEntityReconciliationJob() { + return entityReconciliationJob_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() + : entityReconciliationJob_; } /** + * + * *
    * Required. The EntityReconciliationJob to create.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder + getEntityReconciliationJobOrBuilder() { return getEntityReconciliationJob(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +198,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_); } @@ -169,8 +218,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (entityReconciliationJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntityReconciliationJob()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityReconciliationJob()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +229,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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest)) { + if (!(obj + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasEntityReconciliationJob() != other.hasEntityReconciliationJob()) return false; if (hasEntityReconciliationJob()) { - if (!getEntityReconciliationJob() - .equals(other.getEntityReconciliationJob())) return false; + if (!getEntityReconciliationJob().equals(other.getEntityReconciliationJob())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,130 +266,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - java.io.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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom( + java.io.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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateEntityReconciliationJob.
    * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + .class, + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + .Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.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(); @@ -355,19 +422,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest build() { - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + build() { + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -375,8 +446,11 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJo } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest(this); + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest result = + new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest( + this); result.parent_ = parent_; if (entityReconciliationJobBuilder_ == null) { result.entityReconciliationJob_ = entityReconciliationJob_; @@ -391,46 +465,54 @@ public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest)other); + if (other + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) { + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -464,24 +546,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getEntityReconciliationJobFieldBuilder().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( + getEntityReconciliationJobFieldBuilder().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 +578,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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; @@ -516,22 +604,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 { @@ -539,102 +630,138 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 resource name of the Location to create the
      * EntityReconciliationJob in. Format:
      * `projects/{project}/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 com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entityReconciliationJob_; + private com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + entityReconciliationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> entityReconciliationJobBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + entityReconciliationJobBuilder_; /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the entityReconciliationJob field is set. */ public boolean hasEntityReconciliationJob() { return entityReconciliationJobBuilder_ != null || entityReconciliationJob_ != null; } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The entityReconciliationJob. */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getEntityReconciliationJob() { if (entityReconciliationJobBuilder_ == null) { - return entityReconciliationJob_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() : entityReconciliationJob_; + return entityReconciliationJob_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance() + : entityReconciliationJob_; } else { return entityReconciliationJobBuilder_.getMessage(); } } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { + public Builder setEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { if (entityReconciliationJobBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -648,14 +775,19 @@ public Builder setEntityReconciliationJob(com.google.cloud.enterpriseknowledgegr return this; } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + builderForValue) { if (entityReconciliationJobBuilder_ == null) { entityReconciliationJob_ = builderForValue.build(); onChanged(); @@ -666,17 +798,25 @@ public Builder setEntityReconciliationJob( return this; } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { + public Builder mergeEntityReconciliationJob( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { if (entityReconciliationJobBuilder_ == null) { if (entityReconciliationJob_ != null) { entityReconciliationJob_ = - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.newBuilder(entityReconciliationJob_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.newBuilder( + entityReconciliationJob_) + .mergeFrom(value) + .buildPartial(); } else { entityReconciliationJob_ = value; } @@ -688,11 +828,15 @@ public Builder mergeEntityReconciliationJob(com.google.cloud.enterpriseknowledge return this; } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEntityReconciliationJob() { if (entityReconciliationJobBuilder_ == null) { @@ -706,55 +850,74 @@ public Builder clearEntityReconciliationJob() { return this; } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder getEntityReconciliationJobBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + getEntityReconciliationJobBuilder() { + onChanged(); return getEntityReconciliationJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder + getEntityReconciliationJobOrBuilder() { if (entityReconciliationJobBuilder_ != null) { return entityReconciliationJobBuilder_.getMessageOrBuilder(); } else { - return entityReconciliationJob_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance() : entityReconciliationJob_; + return entityReconciliationJob_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance() + : entityReconciliationJob_; } } /** + * + * *
      * Required. The EntityReconciliationJob to create.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> getEntityReconciliationJobFieldBuilder() { if (entityReconciliationJobBuilder_ == null) { - entityReconciliationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( - getEntityReconciliationJob(), - getParentForChildren(), - isClean()); + entityReconciliationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( + getEntityReconciliationJob(), getParentForChildren(), isClean()); entityReconciliationJob_ = null; } return entityReconciliationJobBuilder_; } + @java.lang.Override - 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 +927,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1 + .CreateEntityReconciliationJobRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +977,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..15aced5c633e --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java @@ -0,0 +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/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface CreateEntityReconciliationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the
+   * EntityReconciliationJob in. Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Location to create the
+   * EntityReconciliationJob in. Format:
+   * `projects/{project}/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 EntityReconciliationJob to create.
+   * 
+ * + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityReconciliationJob field is set. + */ + boolean hasEntityReconciliationJob(); + /** + * + * + *
+   * Required. The EntityReconciliationJob to create.
+   * 
+ * + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityReconciliationJob. + */ + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob(); + /** + * + * + *
+   * Required. The EntityReconciliationJob to create.
+   * 
+ * + * + * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder + getEntityReconciliationJobOrBuilder(); +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java similarity index 51% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java index 2661a6874d59..7b7c3f2fe1e8 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequest.java @@ -1,63 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for DeleteEntityReconciliationJob.
  * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} */ -public final class DeleteEntityReconciliationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteEntityReconciliationJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) DeleteEntityReconciliationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteEntityReconciliationJobRequest.newBuilder() to construct. - private DeleteEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteEntityReconciliationJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteEntityReconciliationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * string name = 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 +94,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 EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * string name = 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 +129,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -135,15 +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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest)) { + if (!(obj + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +194,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - java.io.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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom( + java.io.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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteEntityReconciliationJob.
    * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + .class, + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + .Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.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(); @@ -295,19 +344,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest build() { - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + build() { + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -315,8 +368,11 @@ public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJo } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest(this); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest result = + new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest( + this); result.name_ = name_; onBuilt(); return result; @@ -326,46 +382,54 @@ public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest)other); + if (other + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) { + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +460,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 +485,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string name = 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 +511,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string name = 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 +537,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * 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,41 +620,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1 + .DeleteEntityReconciliationJobRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -580,9 +670,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..5cd5df2c92aa --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.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/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface DeleteEntityReconciliationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * + * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java similarity index 61% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java index deb22bf27cfb..ab7ef3a5a34e 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadata.java @@ -1,60 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Details of operations that perform deletes of any entities.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata} */ -public final class DeleteOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) DeleteOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteOperationMetadata.newBuilder() to construct. private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteOperationMetadata() { - } + + private DeleteOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteOperationMetadata(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); } public static final int COMMON_METADATA_FIELD_NUMBER = 1; private com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata commonMetadata_; /** + * + * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * + * * @return Whether the commonMetadata field is set. */ @java.lang.Override @@ -62,30 +84,41 @@ public boolean hasCommonMetadata() { return commonMetadata_ != null; } /** + * + * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * + * * @return The commonMetadata. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getCommonMetadata() { - return commonMetadata_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() : commonMetadata_; + return commonMetadata_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; } /** + * + * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { return getCommonMetadata(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (commonMetadata_ != null) { output.writeMessage(1, getCommonMetadata()); } @@ -112,8 +144,7 @@ public int getSerializedSize() { size = 0; if (commonMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommonMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +154,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other = (com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) obj; + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other = + (com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) obj; if (hasCommonMetadata() != other.hasCommonMetadata()) return false; if (hasCommonMetadata()) { - if (!getCommonMetadata() - .equals(other.getCommonMetadata())) return false; + if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +187,138 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Details of operations that perform deletes of any entities.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.class, + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.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(); @@ -292,14 +332,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + .getDefaultInstance(); } @java.lang.Override @@ -313,7 +355,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata result = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata(this); + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata result = + new com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata(this); if (commonMetadataBuilder_ == null) { result.commonMetadata_ = commonMetadata_; } else { @@ -327,46 +370,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + .getDefaultInstance()) return this; if (other.hasCommonMetadata()) { mergeCommonMetadata(other.getCommonMetadata()); } @@ -396,19 +444,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCommonMetadataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCommonMetadataFieldBuilder().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,41 +469,60 @@ public Builder mergeFrom( private com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata commonMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> commonMetadataBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> + commonMetadataBuilder_; /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * + * * @return Whether the commonMetadata field is set. */ public boolean hasCommonMetadata() { return commonMetadataBuilder_ != null || commonMetadata_ != null; } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * + * * @return The commonMetadata. */ - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getCommonMetadata() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + getCommonMetadata() { if (commonMetadataBuilder_ == null) { - return commonMetadata_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() : commonMetadata_; + return commonMetadata_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + .getDefaultInstance() + : commonMetadata_; } else { return commonMetadataBuilder_.getMessage(); } } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ - public Builder setCommonMetadata(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { + public Builder setCommonMetadata( + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -469,14 +536,18 @@ public Builder setCommonMetadata(com.google.cloud.enterpriseknowledgegraph.v1.Co return this; } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ public Builder setCommonMetadata( - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder + builderForValue) { if (commonMetadataBuilder_ == null) { commonMetadata_ = builderForValue.build(); onChanged(); @@ -487,17 +558,24 @@ public Builder setCommonMetadata( return this; } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ - public Builder mergeCommonMetadata(com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { + public Builder mergeCommonMetadata( + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (commonMetadata_ != null) { commonMetadata_ = - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.newBuilder(commonMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.newBuilder( + commonMetadata_) + .mergeFrom(value) + .buildPartial(); } else { commonMetadata_ = value; } @@ -509,11 +587,14 @@ public Builder mergeCommonMetadata(com.google.cloud.enterpriseknowledgegraph.v1. return this; } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ public Builder clearCommonMetadata() { if (commonMetadataBuilder_ == null) { @@ -527,55 +608,71 @@ public Builder clearCommonMetadata() { return this; } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder getCommonMetadataBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder + getCommonMetadataBuilder() { + onChanged(); return getCommonMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { if (commonMetadataBuilder_ != null) { return commonMetadataBuilder_.getMessageOrBuilder(); } else { - return commonMetadata_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.getDefaultInstance() : commonMetadata_; + return commonMetadata_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata + .getDefaultInstance() + : commonMetadata_; } } /** + * + * *
      * The common part of the operation metadata.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder> getCommonMetadataFieldBuilder() { if (commonMetadataBuilder_ == null) { - commonMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder>( - getCommonMetadata(), - getParentForChildren(), - isClean()); + commonMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder>( + getCommonMetadata(), getParentForChildren(), isClean()); commonMetadata_ = null; } return commonMetadataBuilder_; } + @java.lang.Override - 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,41 +682,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) - private static final com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,9 +730,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java similarity index 54% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java index c43036358e67..8b475d292229 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteOperationMetadataOrBuilder.java @@ -1,36 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface DeleteOperationMetadataOrBuilder extends +public interface DeleteOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * + * * @return Whether the commonMetadata field is set. */ boolean hasCommonMetadata(); /** + * + * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * + * * @return The commonMetadata. */ com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata getCommonMetadata(); /** + * + * *
    * The common part of the operation metadata.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * .google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata common_metadata = 1; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java similarity index 64% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java index a7947fcee3cf..22f8c49840ab 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJob.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Entity reconciliation job message.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob} */ -public final class EntityReconciliationJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityReconciliationJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) EntityReconciliationJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityReconciliationJob.newBuilder() to construct. private EntityReconciliationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityReconciliationJob() { name_ = ""; state_ = 0; @@ -26,37 +44,41 @@ private EntityReconciliationJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityReconciliationJob(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,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; } } /** + * + * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -98,11 +120,16 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.enterpriseknowledgegraph.v1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input BigQuery tables.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -110,37 +137,54 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input BigQuery tables.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input BigQuery tables.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder + getInputConfigOrBuilder() { return getInputConfig(); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -148,65 +192,95 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int STATE_FIELD_NUMBER = 4; private int state_; /** + * + * *
    * Output only. The detailed state of the job.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The detailed state of the job.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.JobState getState() { + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.JobState getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.JobState result = com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); - return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED : result; + com.google.cloud.enterpriseknowledgegraph.v1.JobState result = + com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); + return result == null + ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED + : result; } public static final int ERROR_FIELD_NUMBER = 5; private com.google.rpc.Status error_; /** + * + * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ @java.lang.Override @@ -214,12 +288,15 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ @java.lang.Override @@ -227,6 +304,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
@@ -242,11 +321,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when the EntityReconciliationJob was 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 @@ -254,11 +337,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the EntityReconciliationJob was 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 @@ -266,11 +353,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the EntityReconciliationJob was 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() { @@ -280,13 +370,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -294,13 +388,17 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -308,13 +406,16 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -324,12 +425,16 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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 @@ -337,12 +442,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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 @@ -350,12 +459,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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() { @@ -365,11 +477,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int RECON_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig reconConfig_; /** + * + * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reconConfig field is set. */ @java.lang.Override @@ -377,30 +494,43 @@ public boolean hasReconConfig() { return reconConfig_ != null; } /** + * + * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reconConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getReconConfig() { - return reconConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() : reconConfig_; + return reconConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() + : reconConfig_; } /** + * + * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder getReconConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder + getReconConfigOrBuilder() { return getReconConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +542,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_); } @@ -423,7 +552,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (outputConfig_ != null) { output.writeMessage(3, getOutputConfig()); } - if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, state_); } if (error_ != null) { @@ -454,36 +585,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } - if (state_ != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.enterpriseknowledgegraph.v1.JobState.JOB_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (reconConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getReconConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getReconConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -493,50 +618,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.enterpriseknowledgegraph.v1.EntityReconciliationJob)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other = (com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) obj; + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other = + (com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) 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 (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) 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 (hasReconConfig() != other.hasReconConfig()) return false; if (hasReconConfig()) { - if (!getReconConfig() - .equals(other.getReconConfig())) return false; + if (!getReconConfig().equals(other.getReconConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -587,129 +705,138 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Entity reconciliation job message.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.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(); @@ -763,14 +890,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance(); } @java.lang.Override @@ -784,7 +913,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob result = new com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob(this); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob result = + new com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -830,46 +960,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -924,71 +1059,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 32: { - state_ = input.readEnum(); - - break; - } // case 32 - case 42: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - input.readMessage( - getReconConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getReconConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -1001,18 +1132,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1021,20 +1154,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1042,54 +1176,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the EntityReconciliationJob.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -1097,39 +1238,58 @@ public Builder setNameBytes( private com.google.cloud.enterpriseknowledgegraph.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -1145,11 +1305,15 @@ public Builder setInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.Input return this; } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder builderForValue) { @@ -1163,17 +1327,24 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig value) { + public Builder mergeInputConfig( + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -1185,11 +1356,15 @@ public Builder mergeInputConfig(com.google.cloud.enterpriseknowledgegraph.v1.Inp return this; } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1203,48 +1378,66 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder getInputConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder + getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder + getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input BigQuery tables.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1252,41 +1445,61 @@ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInpu private com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOutputConfig(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { + public Builder setOutputConfig( + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1300,11 +1513,15 @@ public Builder setOutputConfig(com.google.cloud.enterpriseknowledgegraph.v1.Outp return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder builderForValue) { @@ -1318,17 +1535,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1340,11 +1564,15 @@ public Builder mergeOutputConfig(com.google.cloud.enterpriseknowledgegraph.v1.Ou return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1358,48 +1586,66 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1407,51 +1653,75 @@ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOut private int state_ = 0; /** + * + * *
      * Output only. The detailed state of the job.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The detailed state of the job.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The detailed state of the job.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.JobState getState() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.JobState result = com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); - return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED : result; + com.google.cloud.enterpriseknowledgegraph.v1.JobState result = + com.google.cloud.enterpriseknowledgegraph.v1.JobState.valueOf(state_); + return result == null + ? com.google.cloud.enterpriseknowledgegraph.v1.JobState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The detailed state of the job.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1459,21 +1729,26 @@ public Builder setState(com.google.cloud.enterpriseknowledgegraph.v1.JobState va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The detailed state of the job.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1481,26 +1756,33 @@ public Builder clearState() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -1511,6 +1793,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1532,6 +1816,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1539,8 +1825,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1551,6 +1836,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1561,8 +1848,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1574,6 +1860,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1593,6 +1881,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1601,11 +1891,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1617,11 +1909,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when the job's state is JOB_STATE_FAILED or
      * JOB_STATE_CANCELLED.
@@ -1630,14 +1923,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -1645,39 +1938,58 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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) { @@ -1693,14 +2005,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was 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(); @@ -1711,17 +2026,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was 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; } @@ -1733,11 +2052,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was 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) { @@ -1751,48 +2074,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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_; @@ -1800,28 +2139,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1832,13 +2182,16 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1854,16 +2207,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1874,19 +2229,22 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1898,13 +2256,16 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1918,54 +2279,65 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. Time when the EntityReconciliationJob entered any of the
      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
      * `JOB_STATE_CANCELLED`.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1973,42 +2345,61 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 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. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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) { @@ -2024,15 +2415,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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(); @@ -2043,18 +2437,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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; } @@ -2066,12 +2464,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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) { @@ -2085,51 +2487,67 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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. Time when the EntityReconciliationJob was most recently
      * 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_; @@ -2137,39 +2555,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig reconConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> reconConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> + reconConfigBuilder_; /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reconConfig field is set. */ public boolean hasReconConfig() { return reconConfigBuilder_ != null || reconConfig_ != null; } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reconConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getReconConfig() { if (reconConfigBuilder_ == null) { - return reconConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() : reconConfig_; + return reconConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() + : reconConfig_; } else { return reconConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig value) { if (reconConfigBuilder_ == null) { @@ -2185,11 +2622,15 @@ public Builder setReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.Recon return this; } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReconConfig( com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder builderForValue) { @@ -2203,17 +2644,24 @@ public Builder setReconConfig( return this; } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig value) { + public Builder mergeReconConfig( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig value) { if (reconConfigBuilder_ == null) { if (reconConfig_ != null) { reconConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.newBuilder(reconConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.newBuilder(reconConfig_) + .mergeFrom(value) + .buildPartial(); } else { reconConfig_ = value; } @@ -2225,11 +2673,15 @@ public Builder mergeReconConfig(com.google.cloud.enterpriseknowledgegraph.v1.Rec return this; } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReconConfig() { if (reconConfigBuilder_ == null) { @@ -2243,55 +2695,73 @@ public Builder clearReconConfig() { return this; } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder getReconConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder + getReconConfigBuilder() { + onChanged(); return getReconConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder getReconConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder + getReconConfigOrBuilder() { if (reconConfigBuilder_ != null) { return reconConfigBuilder_.getMessageOrBuilder(); } else { - return reconConfig_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() : reconConfig_; + return reconConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance() + : reconConfig_; } } /** + * + * *
      * Optional. Recon configs to adjust the clustering behavior.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder> getReconConfigFieldBuilder() { if (reconConfigBuilder_ == null) { - reconConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder>( - getReconConfig(), - getParentForChildren(), - isClean()); + reconConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder>( + getReconConfig(), getParentForChildren(), isClean()); reconConfig_ = null; } return reconConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2301,41 +2771,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) - private static final com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityReconciliationJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityReconciliationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2347,9 +2819,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java similarity index 67% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java index e48173c935d2..2e645d2bdc9f 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobOrBuilder.java @@ -1,126 +1,193 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface EntityReconciliationJobOrBuilder extends +public interface EntityReconciliationJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the EntityReconciliationJob.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Information about the input BigQuery tables.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input BigQuery tables.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input BigQuery tables.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.enterpriseknowledgegraph.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Output only. The detailed state of the job.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The detailed state of the job.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.enterpriseknowledgegraph.v1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.enterpriseknowledgegraph.v1.JobState getState(); /** + * + * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Output only. Only populated when the job's state is JOB_STATE_FAILED or
    * JOB_STATE_CANCELLED.
@@ -131,119 +198,166 @@ public interface EntityReconciliationJobOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob was 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. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time when the EntityReconciliationJob entered any of the
    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
    * `JOB_STATE_CANCELLED`.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Time when the EntityReconciliationJob was most recently
    * 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. Time when the EntityReconciliationJob was most recently
    * 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. Time when the EntityReconciliationJob was most recently
    * 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(); /** + * + * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reconConfig field is set. */ boolean hasReconConfig(); /** + * + * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reconConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getReconConfig(); /** + * + * *
    * Optional. Recon configs to adjust the clustering behavior.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig recon_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder getReconConfigOrBuilder(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java similarity index 52% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java index 7924b3f52766..3116762153c5 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequest.java @@ -1,63 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for GetEntityReconciliationJob.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest} */ -public final class GetEntityReconciliationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEntityReconciliationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) GetEntityReconciliationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEntityReconciliationJobRequest.newBuilder() to construct. - private GetEntityReconciliationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetEntityReconciliationJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEntityReconciliationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEntityReconciliationJobRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * string name = 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 +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 EntityReconciliationJob resource.
    * Format:
    * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
    * 
* - * string name = 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 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -135,15 +163,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest)) { + if (!(obj + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +192,146 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - java.io.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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest 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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom( + java.io.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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + 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.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetEntityReconciliationJob.
    * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.Builder + .class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.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(); @@ -295,19 +341,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest build() { - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -315,8 +364,10 @@ public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRe } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(this); + public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest result = + new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,46 +377,53 @@ public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest)other); + if (other + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) { + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +454,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 +479,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string name = 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 +505,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string name = 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 +531,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * string 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 EntityReconciliationJob resource.
      * Format:
      * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
      * 
* - * 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,41 +614,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1 + .GetEntityReconciliationJobRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntityReconciliationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEntityReconciliationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -580,9 +664,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java new file mode 100644 index 000000000000..ab00e31032c4 --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.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/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public interface GetEntityReconciliationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the EntityReconciliationJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
+   * 
+ * + * + * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java similarity index 63% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java index df5a3c52c5f7..1e7183d20300 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { bigqueryInputConfigs_ = java.util.Collections.emptyList(); entityType_ = 0; @@ -27,30 +45,33 @@ private InputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); } /** + * + * *
    * The type of entities we will support. Currently, we only support people,
    * establishment, property, and product types. If the type is
@@ -59,9 +80,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType}
    */
-  public enum EntityType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EntityType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * The default value.
      * 
@@ -70,6 +92,8 @@ public enum EntityType */ ENTITY_TYPE_UNSPECIFIED(0), /** + * + * *
      * People entity.
      * 
@@ -79,6 +103,8 @@ public enum EntityType @java.lang.Deprecated PEOPLE(1), /** + * + * *
      * Establishment entity.
      * 
@@ -88,6 +114,8 @@ public enum EntityType @java.lang.Deprecated ESTABLISHMENT(2), /** + * + * *
      * Property entity. e.g. real estate property.
      * 
@@ -97,6 +125,8 @@ public enum EntityType @java.lang.Deprecated PROPERTY(3), /** + * + * *
      * Product entity.
      * 
@@ -105,6 +135,8 @@ public enum EntityType */ PRODUCT(4), /** + * + * *
      * Organization entity.
      * 
@@ -113,6 +145,8 @@ public enum EntityType */ ORGANIZATION(5), /** + * + * *
      * Local Business entity.
      * 
@@ -121,6 +155,8 @@ public enum EntityType */ LOCAL_BUSINESS(6), /** + * + * *
      * Person entity.
      * 
@@ -132,6 +168,8 @@ public enum EntityType ; /** + * + * *
      * The default value.
      * 
@@ -140,6 +178,8 @@ public enum EntityType */ public static final int ENTITY_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * People entity.
      * 
@@ -148,6 +188,8 @@ public enum EntityType */ @java.lang.Deprecated public static final int PEOPLE_VALUE = 1; /** + * + * *
      * Establishment entity.
      * 
@@ -156,6 +198,8 @@ public enum EntityType */ @java.lang.Deprecated public static final int ESTABLISHMENT_VALUE = 2; /** + * + * *
      * Property entity. e.g. real estate property.
      * 
@@ -164,6 +208,8 @@ public enum EntityType */ @java.lang.Deprecated public static final int PROPERTY_VALUE = 3; /** + * + * *
      * Product entity.
      * 
@@ -172,6 +218,8 @@ public enum EntityType */ public static final int PRODUCT_VALUE = 4; /** + * + * *
      * Organization entity.
      * 
@@ -180,6 +228,8 @@ public enum EntityType */ public static final int ORGANIZATION_VALUE = 5; /** + * + * *
      * Local Business entity.
      * 
@@ -188,6 +238,8 @@ public enum EntityType */ public static final int LOCAL_BUSINESS_VALUE = 6; /** + * + * *
      * Person entity.
      * 
@@ -196,7 +248,6 @@ public enum EntityType */ public static final int PERSON_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -221,54 +272,61 @@ public static EntityType valueOf(int value) { */ public static EntityType forNumber(int value) { switch (value) { - case 0: return ENTITY_TYPE_UNSPECIFIED; - case 1: return PEOPLE; - case 2: return ESTABLISHMENT; - case 3: return PROPERTY; - case 4: return PRODUCT; - case 5: return ORGANIZATION; - case 6: return LOCAL_BUSINESS; - case 7: return PERSON; - default: return null; + case 0: + return ENTITY_TYPE_UNSPECIFIED; + case 1: + return PEOPLE; + case 2: + return ESTABLISHMENT; + case 3: + return PROPERTY; + case 4: + return PRODUCT; + case 5: + return ORGANIZATION; + case 6: + return LOCAL_BUSINESS; + case 7: + return PERSON; + 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< - EntityType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EntityType findValueByNumber(int number) { - return EntityType.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 EntityType findValueByNumber(int number) { + return EntityType.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.enterpriseknowledgegraph.v1.InputConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final EntityType[] VALUES = values(); - public static EntityType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EntityType 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; @@ -286,102 +344,142 @@ private EntityType(int value) { } public static final int BIGQUERY_INPUT_CONFIGS_FIELD_NUMBER = 1; - private java.util.List bigqueryInputConfigs_; + private java.util.List + bigqueryInputConfigs_; /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ @java.lang.Override - public java.util.List getBigqueryInputConfigsList() { + public java.util.List + getBigqueryInputConfigsList() { return bigqueryInputConfigs_; } /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> getBigqueryInputConfigsOrBuilderList() { return bigqueryInputConfigs_; } /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ @java.lang.Override public int getBigqueryInputConfigsCount() { return bigqueryInputConfigs_.size(); } /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs( + int index) { return bigqueryInputConfigs_.get(index); } /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder getBigqueryInputConfigsOrBuilder( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder + getBigqueryInputConfigsOrBuilder(int index) { return bigqueryInputConfigs_.get(index); } public static final int ENTITY_TYPE_FIELD_NUMBER = 2; private int entityType_; /** + * + * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * * @return The enum numeric value on the wire for entityType. */ - @java.lang.Override public int getEntityTypeValue() { + @java.lang.Override + public int getEntityTypeValue() { return entityType_; } /** + * + * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * * @return The entityType. */ - @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType() { + @java.lang.Override + public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); - return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED : result; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); + return result == null + ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED + : result; } public static final int PREVIOUS_RESULT_BIGQUERY_TABLE_FIELD_NUMBER = 3; private volatile java.lang.Object previousResultBigqueryTable_; /** + * + * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The previousResultBigqueryTable. */ @java.lang.Override @@ -390,31 +488,33 @@ public java.lang.String getPreviousResultBigqueryTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); previousResultBigqueryTable_ = s; return s; } } /** + * + * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for previousResultBigqueryTable. */ @java.lang.Override - public com.google.protobuf.ByteString - getPreviousResultBigqueryTableBytes() { + public com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes() { java.lang.Object ref = previousResultBigqueryTable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); previousResultBigqueryTable_ = b; return b; } else { @@ -423,6 +523,7 @@ public java.lang.String getPreviousResultBigqueryTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,12 +535,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < bigqueryInputConfigs_.size(); i++) { output.writeMessage(1, bigqueryInputConfigs_.get(i)); } - if (entityType_ != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.ENTITY_TYPE_UNSPECIFIED.getNumber()) { + if (entityType_ + != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType + .ENTITY_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, entityType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousResultBigqueryTable_)) { @@ -455,15 +558,18 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bigqueryInputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bigqueryInputConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigqueryInputConfigs_.get(i)); } - if (entityType_ != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.ENTITY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, entityType_); + if (entityType_ + != com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType + .ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entityType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousResultBigqueryTable_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, previousResultBigqueryTable_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, previousResultBigqueryTable_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -473,18 +579,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.enterpriseknowledgegraph.v1.InputConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) obj; - if (!getBigqueryInputConfigsList() - .equals(other.getBigqueryInputConfigsList())) return false; + if (!getBigqueryInputConfigsList().equals(other.getBigqueryInputConfigsList())) return false; if (entityType_ != other.entityType_) return false; - if (!getPreviousResultBigqueryTable() - .equals(other.getPreviousResultBigqueryTable())) return false; + if (!getPreviousResultBigqueryTable().equals(other.getPreviousResultBigqueryTable())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -510,129 +616,136 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.InputConfig) com.google.cloud.enterpriseknowledgegraph.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.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(); @@ -651,9 +764,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_descriptor; } @java.lang.Override @@ -672,7 +785,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig build() { @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.InputConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.InputConfig(this); int from_bitField0_ = bitField0_; if (bigqueryInputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -693,38 +807,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.InputConfig)other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -732,7 +847,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.getDefaultInstance()) + return this; if (bigqueryInputConfigsBuilder_ == null) { if (!other.bigqueryInputConfigs_.isEmpty()) { if (bigqueryInputConfigs_.isEmpty()) { @@ -751,9 +867,10 @@ public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.InputConfi bigqueryInputConfigsBuilder_ = null; bigqueryInputConfigs_ = other.bigqueryInputConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - bigqueryInputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBigqueryInputConfigsFieldBuilder() : null; + bigqueryInputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBigqueryInputConfigsFieldBuilder() + : null; } else { bigqueryInputConfigsBuilder_.addAllMessages(other.bigqueryInputConfigs_); } @@ -792,35 +909,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig m = - input.readMessage( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.parser(), - extensionRegistry); - if (bigqueryInputConfigsBuilder_ == null) { - ensureBigqueryInputConfigsIsMutable(); - bigqueryInputConfigs_.add(m); - } else { - bigqueryInputConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - entityType_ = input.readEnum(); - - break; - } // case 16 - case 26: { - previousResultBigqueryTable_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig m = + input.readMessage( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.parser(), + extensionRegistry); + if (bigqueryInputConfigsBuilder_ == null) { + ensureBigqueryInputConfigsIsMutable(); + bigqueryInputConfigs_.add(m); + } else { + bigqueryInputConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + entityType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + previousResultBigqueryTable_ = 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) { @@ -830,28 +951,41 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List bigqueryInputConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + bigqueryInputConfigs_ = java.util.Collections.emptyList(); + private void ensureBigqueryInputConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - bigqueryInputConfigs_ = new java.util.ArrayList(bigqueryInputConfigs_); + bigqueryInputConfigs_ = + new java.util.ArrayList< + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig>( + bigqueryInputConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> bigqueryInputConfigsBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> + bigqueryInputConfigsBuilder_; /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public java.util.List getBigqueryInputConfigsList() { + public java.util.List + getBigqueryInputConfigsList() { if (bigqueryInputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(bigqueryInputConfigs_); } else { @@ -859,11 +993,15 @@ public java.util.List * Set of input BigQuery tables. *
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public int getBigqueryInputConfigsCount() { if (bigqueryInputConfigsBuilder_ == null) { @@ -873,13 +1011,18 @@ public int getBigqueryInputConfigsCount() { } } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs( + int index) { if (bigqueryInputConfigsBuilder_ == null) { return bigqueryInputConfigs_.get(index); } else { @@ -887,11 +1030,15 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqu } } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder setBigqueryInputConfigs( int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { @@ -908,14 +1055,19 @@ public Builder setBigqueryInputConfigs( return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder setBigqueryInputConfigs( - int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { + int index, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { if (bigqueryInputConfigsBuilder_ == null) { ensureBigqueryInputConfigsIsMutable(); bigqueryInputConfigs_.set(index, builderForValue.build()); @@ -926,13 +1078,18 @@ public Builder setBigqueryInputConfigs( return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public Builder addBigqueryInputConfigs(com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { + public Builder addBigqueryInputConfigs( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { if (bigqueryInputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -946,11 +1103,15 @@ public Builder addBigqueryInputConfigs(com.google.cloud.enterpriseknowledgegraph return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder addBigqueryInputConfigs( int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig value) { @@ -967,11 +1128,15 @@ public Builder addBigqueryInputConfigs( return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder addBigqueryInputConfigs( com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { @@ -985,14 +1150,19 @@ public Builder addBigqueryInputConfigs( return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder addBigqueryInputConfigs( - int index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { + int index, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder builderForValue) { if (bigqueryInputConfigsBuilder_ == null) { ensureBigqueryInputConfigsIsMutable(); bigqueryInputConfigs_.add(index, builderForValue.build()); @@ -1003,18 +1173,23 @@ public Builder addBigqueryInputConfigs( return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder addAllBigqueryInputConfigs( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig> + values) { if (bigqueryInputConfigsBuilder_ == null) { ensureBigqueryInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bigqueryInputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryInputConfigs_); onChanged(); } else { bigqueryInputConfigsBuilder_.addAllMessages(values); @@ -1022,11 +1197,15 @@ public Builder addAllBigqueryInputConfigs( return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder clearBigqueryInputConfigs() { if (bigqueryInputConfigsBuilder_ == null) { @@ -1039,11 +1218,15 @@ public Builder clearBigqueryInputConfigs() { return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ public Builder removeBigqueryInputConfigs(int index) { if (bigqueryInputConfigsBuilder_ == null) { @@ -1056,39 +1239,53 @@ public Builder removeBigqueryInputConfigs(int index) { return this; } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder getBigqueryInputConfigsBuilder( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder + getBigqueryInputConfigsBuilder(int index) { return getBigqueryInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder getBigqueryInputConfigsOrBuilder( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder + getBigqueryInputConfigsOrBuilder(int index) { if (bigqueryInputConfigsBuilder_ == null) { - return bigqueryInputConfigs_.get(index); } else { + return bigqueryInputConfigs_.get(index); + } else { return bigqueryInputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public java.util.List - getBigqueryInputConfigsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> + getBigqueryInputConfigsOrBuilderList() { if (bigqueryInputConfigsBuilder_ != null) { return bigqueryInputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1096,45 +1293,69 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder } } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder addBigqueryInputConfigsBuilder() { - return getBigqueryInputConfigsFieldBuilder().addBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder + addBigqueryInputConfigsBuilder() { + return getBigqueryInputConfigsFieldBuilder() + .addBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig + .getDefaultInstance()); } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder addBigqueryInputConfigsBuilder( - int index) { - return getBigqueryInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder + addBigqueryInputConfigsBuilder(int index) { + return getBigqueryInputConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig + .getDefaultInstance()); } /** + * + * *
      * Set of input BigQuery tables.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - public java.util.List - getBigqueryInputConfigsBuilderList() { + public java.util.List + getBigqueryInputConfigsBuilderList() { return getBigqueryInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> getBigqueryInputConfigsFieldBuilder() { if (bigqueryInputConfigsBuilder_ == null) { - bigqueryInputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder>( + bigqueryInputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder>( bigqueryInputConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1146,73 +1367,98 @@ public com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig.Builder private int entityType_ = 0; /** + * + * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * + * * @return The enum numeric value on the wire for entityType. */ - @java.lang.Override public int getEntityTypeValue() { + @java.lang.Override + public int getEntityTypeValue() { return entityType_; } /** + * + * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * + * * @param value The enum numeric value on the wire for entityType to set. * @return This builder for chaining. */ public Builder setEntityTypeValue(int value) { - + entityType_ = value; onChanged(); return this; } /** + * + * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * + * * @return The entityType. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType() { @SuppressWarnings("deprecation") - com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); - return result == null ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED : result; + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType result = + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.valueOf(entityType_); + return result == null + ? com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType.UNRECOGNIZED + : result; } /** + * + * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * + * * @param value The entityType to set. * @return This builder for chaining. */ - public Builder setEntityType(com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType value) { + public Builder setEntityType( + com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType value) { if (value == null) { throw new NullPointerException(); } - + entityType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Entity type
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * + * * @return This builder for chaining. */ public Builder clearEntityType() { - + entityType_ = 0; onChanged(); return this; @@ -1220,20 +1466,24 @@ public Builder clearEntityType() { private java.lang.Object previousResultBigqueryTable_ = ""; /** + * + * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The previousResultBigqueryTable. */ public java.lang.String getPreviousResultBigqueryTable() { java.lang.Object ref = previousResultBigqueryTable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); previousResultBigqueryTable_ = s; return s; @@ -1242,22 +1492,25 @@ public java.lang.String getPreviousResultBigqueryTable() { } } /** + * + * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for previousResultBigqueryTable. */ - public com.google.protobuf.ByteString - getPreviousResultBigqueryTableBytes() { + public com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes() { java.lang.Object ref = previousResultBigqueryTable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); previousResultBigqueryTable_ = b; return b; } else { @@ -1265,67 +1518,80 @@ public java.lang.String getPreviousResultBigqueryTable() { } } /** + * + * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The previousResultBigqueryTable to set. * @return This builder for chaining. */ - public Builder setPreviousResultBigqueryTable( - java.lang.String value) { + public Builder setPreviousResultBigqueryTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + previousResultBigqueryTable_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPreviousResultBigqueryTable() { - + previousResultBigqueryTable_ = getDefaultInstance().getPreviousResultBigqueryTable(); onChanged(); return this; } /** + * + * *
      * Optional. Provide the bigquery table containing the previous results if
      * cluster ID stability is desired. Format is
      * `projects/*/datasets/*/tables/*`.
      * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for previousResultBigqueryTable to set. * @return This builder for chaining. */ - public Builder setPreviousResultBigqueryTableBytes( - com.google.protobuf.ByteString value) { + public Builder setPreviousResultBigqueryTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previousResultBigqueryTable_ = 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); } @@ -1335,12 +1601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.InputConfig) private static final com.google.cloud.enterpriseknowledgegraph.v1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.InputConfig(); } @@ -1349,27 +1615,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1384,6 +1650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java similarity index 51% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java index bf5617045764..5dde7c691345 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/InputConfigOrBuilder.java @@ -1,96 +1,149 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - java.util.List + java.util.List getBigqueryInputConfigsList(); /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs(int index); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig getBigqueryInputConfigs( + int index); /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ int getBigqueryInputConfigsCount(); /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder> getBigqueryInputConfigsOrBuilderList(); /** + * + * *
    * Set of input BigQuery tables.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig bigquery_input_configs = 1; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder getBigqueryInputConfigsOrBuilder( - int index); + com.google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfigOrBuilder + getBigqueryInputConfigsOrBuilder(int index); /** + * + * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * * @return The enum numeric value on the wire for entityType. */ int getEntityTypeValue(); /** + * + * *
    * Entity type
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType entity_type = 2; + * * @return The entityType. */ com.google.cloud.enterpriseknowledgegraph.v1.InputConfig.EntityType getEntityType(); /** + * + * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The previousResultBigqueryTable. */ java.lang.String getPreviousResultBigqueryTable(); /** + * + * *
    * Optional. Provide the bigquery table containing the previous results if
    * cluster ID stability is desired. Format is
    * `projects/*/datasets/*/tables/*`.
    * 
* - * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string previous_result_bigquery_table = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for previousResultBigqueryTable. */ - com.google.protobuf.ByteString - getPreviousResultBigqueryTableBytes(); + com.google.protobuf.ByteString getPreviousResultBigqueryTableBytes(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java similarity index 72% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java index 43d9927c3346..1bdd7840b623 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobState.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/enterpriseknowledgegraph/v1/job_state.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Describes the state of a job.
  * 
* * Protobuf enum {@code google.cloud.enterpriseknowledgegraph.v1.JobState} */ -public enum JobState - implements com.google.protobuf.ProtocolMessageEnum { +public enum JobState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The job state is unspecified.
    * 
@@ -21,6 +39,8 @@ public enum JobState */ JOB_STATE_UNSPECIFIED(0), /** + * + * *
    * The service is preparing to run the job.
    * 
@@ -29,6 +49,8 @@ public enum JobState */ JOB_STATE_PENDING(9), /** + * + * *
    * The job is in progress.
    * 
@@ -37,6 +59,8 @@ public enum JobState */ JOB_STATE_RUNNING(1), /** + * + * *
    * The job completed successfully.
    * 
@@ -45,6 +69,8 @@ public enum JobState */ JOB_STATE_SUCCEEDED(2), /** + * + * *
    * The job failed.
    * 
@@ -53,6 +79,8 @@ public enum JobState */ JOB_STATE_FAILED(3), /** + * + * *
    * The job has been cancelled.
    * 
@@ -61,6 +89,8 @@ public enum JobState */ JOB_STATE_CANCELLED(4), /** + * + * *
    * Entity Recon API: The knowledge extraction job is running.
    * 
@@ -69,6 +99,8 @@ public enum JobState */ JOB_STATE_KNOWLEDGE_EXTRACTION(5), /** + * + * *
    * Entity Recon API: The preprocessing job is running.
    * 
@@ -77,6 +109,8 @@ public enum JobState */ JOB_STATE_RECON_PREPROCESSING(6), /** + * + * *
    * Entity Recon API: The clustering job is running.
    * 
@@ -85,6 +119,8 @@ public enum JobState */ JOB_STATE_CLUSTERING(7), /** + * + * *
    * Entity Recon API: The exporting clusters job is running.
    * 
@@ -96,6 +132,8 @@ public enum JobState ; /** + * + * *
    * The job state is unspecified.
    * 
@@ -104,6 +142,8 @@ public enum JobState */ public static final int JOB_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The service is preparing to run the job.
    * 
@@ -112,6 +152,8 @@ public enum JobState */ public static final int JOB_STATE_PENDING_VALUE = 9; /** + * + * *
    * The job is in progress.
    * 
@@ -120,6 +162,8 @@ public enum JobState */ public static final int JOB_STATE_RUNNING_VALUE = 1; /** + * + * *
    * The job completed successfully.
    * 
@@ -128,6 +172,8 @@ public enum JobState */ public static final int JOB_STATE_SUCCEEDED_VALUE = 2; /** + * + * *
    * The job failed.
    * 
@@ -136,6 +182,8 @@ public enum JobState */ public static final int JOB_STATE_FAILED_VALUE = 3; /** + * + * *
    * The job has been cancelled.
    * 
@@ -144,6 +192,8 @@ public enum JobState */ public static final int JOB_STATE_CANCELLED_VALUE = 4; /** + * + * *
    * Entity Recon API: The knowledge extraction job is running.
    * 
@@ -152,6 +202,8 @@ public enum JobState */ public static final int JOB_STATE_KNOWLEDGE_EXTRACTION_VALUE = 5; /** + * + * *
    * Entity Recon API: The preprocessing job is running.
    * 
@@ -160,6 +212,8 @@ public enum JobState */ public static final int JOB_STATE_RECON_PREPROCESSING_VALUE = 6; /** + * + * *
    * Entity Recon API: The clustering job is running.
    * 
@@ -168,6 +222,8 @@ public enum JobState */ public static final int JOB_STATE_CLUSTERING_VALUE = 7; /** + * + * *
    * Entity Recon API: The exporting clusters job is running.
    * 
@@ -176,7 +232,6 @@ public enum JobState */ public static final int JOB_STATE_EXPORTING_CLUSTERS_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -201,56 +256,65 @@ public static JobState valueOf(int value) { */ public static JobState forNumber(int value) { switch (value) { - case 0: return JOB_STATE_UNSPECIFIED; - case 9: return JOB_STATE_PENDING; - case 1: return JOB_STATE_RUNNING; - case 2: return JOB_STATE_SUCCEEDED; - case 3: return JOB_STATE_FAILED; - case 4: return JOB_STATE_CANCELLED; - case 5: return JOB_STATE_KNOWLEDGE_EXTRACTION; - case 6: return JOB_STATE_RECON_PREPROCESSING; - case 7: return JOB_STATE_CLUSTERING; - case 8: return JOB_STATE_EXPORTING_CLUSTERS; - default: return null; + case 0: + return JOB_STATE_UNSPECIFIED; + case 9: + return JOB_STATE_PENDING; + case 1: + return JOB_STATE_RUNNING; + case 2: + return JOB_STATE_SUCCEEDED; + case 3: + return JOB_STATE_FAILED; + case 4: + return JOB_STATE_CANCELLED; + case 5: + return JOB_STATE_KNOWLEDGE_EXTRACTION; + case 6: + return JOB_STATE_RECON_PREPROCESSING; + case 7: + return JOB_STATE_CLUSTERING; + case 8: + return JOB_STATE_EXPORTING_CLUSTERS; + 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< - JobState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JobState findValueByNumber(int number) { - return JobState.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 JobState findValueByNumber(int number) { + return JobState.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.enterpriseknowledgegraph.v1.JobStateProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.JobStateProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final JobState[] VALUES = values(); - public static JobState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static JobState 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; @@ -266,4 +330,3 @@ private JobState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.enterpriseknowledgegraph.v1.JobState) } - diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java new file mode 100644 index 000000000000..8c987819336b --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java @@ -0,0 +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/enterpriseknowledgegraph/v1/job_state.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public final class JobStateProto { + private JobStateProto() {} + + 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 = { + "\n8google/cloud/enterpriseknowledgegraph/" + + "v1/job_state.proto\022(google.cloud.enterpr" + + "iseknowledgegraph.v1*\236\002\n\010JobState\022\031\n\025JOB" + + "_STATE_UNSPECIFIED\020\000\022\025\n\021JOB_STATE_PENDIN" + + "G\020\t\022\025\n\021JOB_STATE_RUNNING\020\001\022\027\n\023JOB_STATE_" + + "SUCCEEDED\020\002\022\024\n\020JOB_STATE_FAILED\020\003\022\027\n\023JOB" + + "_STATE_CANCELLED\020\004\022\"\n\036JOB_STATE_KNOWLEDG" + + "E_EXTRACTION\020\005\022!\n\035JOB_STATE_RECON_PREPRO" + + "CESSING\020\006\022\030\n\024JOB_STATE_CLUSTERING\020\007\022 \n\034J" + + "OB_STATE_EXPORTING_CLUSTERS\020\010B\245\002\n,com.go" + + "ogle.cloud.enterpriseknowledgegraph.v1B\r" + + "JobStateProtoP\001Z`google.golang.org/genpr" + + "oto/googleapis/cloud/enterpriseknowledge" + + "graph/v1;enterpriseknowledgegraph\252\002(Goog" + + "le.Cloud.EnterpriseKnowledgeGraph.V1\312\002(G" + + "oogle\\Cloud\\EnterpriseKnowledgeGraph\\V1\352" + + "\002+Google::Cloud::EnterpriseKnowledgeGrap" + + "h::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java similarity index 60% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java index 12c143b227df..d131212a7c60 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequest.java @@ -1,25 +1,46 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for
  * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
  * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} */ -public final class ListEntityReconciliationJobsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEntityReconciliationJobsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) ListEntityReconciliationJobsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEntityReconciliationJobsRequest.newBuilder() to construct. - private ListEntityReconciliationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEntityReconciliationJobsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEntityReconciliationJobsRequest() { parent_ = ""; filter_ = ""; @@ -28,38 +49,45 @@ private ListEntityReconciliationJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEntityReconciliationJobsRequest(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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 +96,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 name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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 +132,15 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -116,30 +149,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -150,11 +183,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -165,11 +201,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -178,29 +217,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The standard list page token.
    * 
* * 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 { @@ -209,6 +248,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +260,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_); } @@ -250,8 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } 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_); @@ -264,21 +302,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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest)) { + if (!(obj + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,131 +340,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom( + java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
    * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + .class, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + .Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.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(); @@ -443,19 +497,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest build() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + build() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -463,8 +521,11 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobs } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest(this); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest result = + new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest( + this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -477,46 +538,54 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobs public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest)other); + if (other + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) { + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -558,32 +627,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); - 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) { @@ -596,19 +670,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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; @@ -617,21 +695,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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 { @@ -639,57 +720,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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 name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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 name of the EntityReconciliationJob's parent resource.
      * Format: `projects/{project}/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; @@ -697,19 +791,21 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -718,21 +814,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -740,69 +837,79 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request. For field names
      * both snake_case and camelCase are supported.
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -810,30 +917,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The standard list page size.
      * 
* * 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 standard list page size.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -841,18 +954,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The standard list page token.
      * 
* * 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; @@ -861,20 +976,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * 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 { @@ -882,61 +998,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * 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; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * 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; } + @java.lang.Override - 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,41 +1069,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntityReconciliationJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntityReconciliationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,9 +1119,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java index cda427c1a817..745b2703322c 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsRequestOrBuilder.java @@ -1,83 +1,121 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface ListEntityReconciliationJobsRequestOrBuilder extends +public interface ListEntityReconciliationJobsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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 name of the EntityReconciliationJob's parent resource.
    * Format: `projects/{project}/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(); /** + * + * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression for filtering the results of the request. For field names
    * both snake_case and camelCase are supported.
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java similarity index 56% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java index 135719eaca39..4abde1736f7a 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponse.java @@ -1,25 +1,46 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Response message for
  * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
  * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} */ -public final class ListEntityReconciliationJobsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEntityReconciliationJobsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) ListEntityReconciliationJobsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEntityReconciliationJobsResponse.newBuilder() to construct. - private ListEntityReconciliationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEntityReconciliationJobsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEntityReconciliationJobsResponse() { entityReconciliationJobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,102 +48,131 @@ private ListEntityReconciliationJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEntityReconciliationJobsResponse(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + .Builder.class); } public static final int ENTITY_RECONCILIATION_JOBS_FIELD_NUMBER = 1; - private java.util.List entityReconciliationJobs_; + private java.util.List + entityReconciliationJobs_; /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ @java.lang.Override - public java.util.List getEntityReconciliationJobsList() { + public java.util.List + getEntityReconciliationJobsList() { return entityReconciliationJobs_; } /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> getEntityReconciliationJobsOrBuilderList() { return entityReconciliationJobs_; } /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ @java.lang.Override public int getEntityReconciliationJobsCount() { return entityReconciliationJobs_.size(); } /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getEntityReconciliationJobs(int index) { return entityReconciliationJobs_.get(index); } /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobsOrBuilder( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder + getEntityReconciliationJobsOrBuilder(int index) { return entityReconciliationJobs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,29 +181,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -162,6 +212,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +224,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entityReconciliationJobs_.size(); i++) { output.writeMessage(1, entityReconciliationJobs_.get(i)); } @@ -191,8 +241,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entityReconciliationJobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entityReconciliationJobs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, entityReconciliationJobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse)) { + if (!(obj + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other = + (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) obj; - if (!getEntityReconciliationJobsList() - .equals(other.getEntityReconciliationJobsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getEntityReconciliationJobsList().equals(other.getEntityReconciliationJobsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,131 +291,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom( + java.io.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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + 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.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.ListEntityReconciliationJobs].
    * 
* - * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} + * Protobuf type {@code + * google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + .class, + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + .Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.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(); @@ -379,19 +449,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse build() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = buildPartial(); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + build() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -399,12 +473,16 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobs } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse(this); + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + buildPartial() { + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse result = + new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse( + this); int from_bitField0_ = bitField0_; if (entityReconciliationJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - entityReconciliationJobs_ = java.util.Collections.unmodifiableList(entityReconciliationJobs_); + entityReconciliationJobs_ = + java.util.Collections.unmodifiableList(entityReconciliationJobs_); bitField0_ = (bitField0_ & ~0x00000001); } result.entityReconciliationJobs_ = entityReconciliationJobs_; @@ -420,46 +498,54 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobs public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse)other); + if (other + instanceof + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) { + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + .getDefaultInstance()) return this; if (entityReconciliationJobsBuilder_ == null) { if (!other.entityReconciliationJobs_.isEmpty()) { if (entityReconciliationJobs_.isEmpty()) { @@ -478,9 +564,10 @@ public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ListEntity entityReconciliationJobsBuilder_ = null; entityReconciliationJobs_ = other.entityReconciliationJobs_; bitField0_ = (bitField0_ & ~0x00000001); - entityReconciliationJobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntityReconciliationJobsFieldBuilder() : null; + entityReconciliationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntityReconciliationJobsFieldBuilder() + : null; } else { entityReconciliationJobsBuilder_.addAllMessages(other.entityReconciliationJobs_); } @@ -516,30 +603,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob m = - input.readMessage( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.parser(), - extensionRegistry); - if (entityReconciliationJobsBuilder_ == null) { - ensureEntityReconciliationJobsIsMutable(); - entityReconciliationJobs_.add(m); - } else { - entityReconciliationJobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob m = + input.readMessage( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .parser(), + extensionRegistry); + if (entityReconciliationJobsBuilder_ == null) { + ensureEntityReconciliationJobsIsMutable(); + entityReconciliationJobs_.add(m); + } else { + entityReconciliationJobsBuilder_.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) { @@ -549,29 +640,42 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List entityReconciliationJobs_ = - java.util.Collections.emptyList(); + private java.util.List + entityReconciliationJobs_ = java.util.Collections.emptyList(); + private void ensureEntityReconciliationJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entityReconciliationJobs_ = new java.util.ArrayList(entityReconciliationJobs_); + entityReconciliationJobs_ = + new java.util.ArrayList< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( + entityReconciliationJobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> entityReconciliationJobsBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + entityReconciliationJobsBuilder_; /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public java.util.List getEntityReconciliationJobsList() { + public java.util.List + getEntityReconciliationJobsList() { if (entityReconciliationJobsBuilder_ == null) { return java.util.Collections.unmodifiableList(entityReconciliationJobs_); } else { @@ -579,12 +683,16 @@ public java.util.List * A list of EntityReconciliationJobs that matches the specified filter in the * request. *
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public int getEntityReconciliationJobsCount() { if (entityReconciliationJobsBuilder_ == null) { @@ -594,14 +702,19 @@ public int getEntityReconciliationJobsCount() { } } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs(int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + getEntityReconciliationJobs(int index) { if (entityReconciliationJobsBuilder_ == null) { return entityReconciliationJobs_.get(index); } else { @@ -609,12 +722,16 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getE } } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder setEntityReconciliationJobs( int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { @@ -631,15 +748,21 @@ public Builder setEntityReconciliationJobs( return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder setEntityReconciliationJobs( - int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { + int index, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + builderForValue) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); entityReconciliationJobs_.set(index, builderForValue.build()); @@ -650,14 +773,19 @@ public Builder setEntityReconciliationJobs( return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public Builder addEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { + public Builder addEntityReconciliationJobs( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { if (entityReconciliationJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -671,12 +799,16 @@ public Builder addEntityReconciliationJobs(com.google.cloud.enterpriseknowledgeg return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder addEntityReconciliationJobs( int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob value) { @@ -693,15 +825,20 @@ public Builder addEntityReconciliationJobs( return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder addEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + builderForValue) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); entityReconciliationJobs_.add(builderForValue.build()); @@ -712,15 +849,21 @@ public Builder addEntityReconciliationJobs( return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder addEntityReconciliationJobs( - int index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder builderForValue) { + int index, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + builderForValue) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); entityReconciliationJobs_.add(index, builderForValue.build()); @@ -731,19 +874,24 @@ public Builder addEntityReconciliationJobs( return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder addAllEntityReconciliationJobs( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob> + values) { if (entityReconciliationJobsBuilder_ == null) { ensureEntityReconciliationJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entityReconciliationJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityReconciliationJobs_); onChanged(); } else { entityReconciliationJobsBuilder_.addAllMessages(values); @@ -751,12 +899,16 @@ public Builder addAllEntityReconciliationJobs( return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder clearEntityReconciliationJobs() { if (entityReconciliationJobsBuilder_ == null) { @@ -769,12 +921,16 @@ public Builder clearEntityReconciliationJobs() { return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ public Builder removeEntityReconciliationJobs(int index) { if (entityReconciliationJobsBuilder_ == null) { @@ -787,42 +943,56 @@ public Builder removeEntityReconciliationJobs(int index) { return this; } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder getEntityReconciliationJobsBuilder( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + getEntityReconciliationJobsBuilder(int index) { return getEntityReconciliationJobsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobsOrBuilder( - int index) { + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder + getEntityReconciliationJobsOrBuilder(int index) { if (entityReconciliationJobsBuilder_ == null) { - return entityReconciliationJobs_.get(index); } else { + return entityReconciliationJobs_.get(index); + } else { return entityReconciliationJobsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public java.util.List - getEntityReconciliationJobsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + getEntityReconciliationJobsOrBuilderList() { if (entityReconciliationJobsBuilder_ != null) { return entityReconciliationJobsBuilder_.getMessageOrBuilderList(); } else { @@ -830,48 +1000,73 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBui } } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder addEntityReconciliationJobsBuilder() { - return getEntityReconciliationJobsFieldBuilder().addBuilder( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + addEntityReconciliationJobsBuilder() { + return getEntityReconciliationJobsFieldBuilder() + .addBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance()); } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder addEntityReconciliationJobsBuilder( - int index) { - return getEntityReconciliationJobsFieldBuilder().addBuilder( - index, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance()); + public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder + addEntityReconciliationJobsBuilder(int index) { + return getEntityReconciliationJobsFieldBuilder() + .addBuilder( + index, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob + .getDefaultInstance()); } /** + * + * *
      * A list of EntityReconciliationJobs that matches the specified filter in the
      * request.
      * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - public java.util.List - getEntityReconciliationJobsBuilderList() { + public java.util.List< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder> + getEntityReconciliationJobsBuilderList() { return getEntityReconciliationJobsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> getEntityReconciliationJobsFieldBuilder() { if (entityReconciliationJobsBuilder_ == null) { - entityReconciliationJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( + entityReconciliationJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder>( entityReconciliationJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -883,18 +1078,20 @@ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.Buil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -903,20 +1100,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -924,61 +1122,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -988,41 +1193,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1 + .ListEntityReconciliationJobsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntityReconciliationJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntityReconciliationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,9 +1243,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java similarity index 50% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java index 18ded24dbf93..53dd4050f796 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ListEntityReconciliationJobsResponseOrBuilder.java @@ -1,78 +1,121 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface ListEntityReconciliationJobsResponseOrBuilder extends +public interface ListEntityReconciliationJobsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - java.util.List + java.util.List getEntityReconciliationJobsList(); /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs(int index); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJobs( + int index); /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ int getEntityReconciliationJobsCount(); /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder> getEntityReconciliationJobsOrBuilderList(); /** + * + * *
    * A list of EntityReconciliationJobs that matches the specified filter in the
    * request.
    * 
* - * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * + * repeated .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_jobs = 1; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobsOrBuilder( - int index); + com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder + getEntityReconciliationJobsOrBuilder(int index); /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java similarity index 68% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java index 1f719f597612..475c8d06ac5b 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequest.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for
  * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest}
  */
-public final class LookupPublicKgRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LookupPublicKgRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest)
     LookupPublicKgRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LookupPublicKgRequest.newBuilder() to construct.
   private LookupPublicKgRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LookupPublicKgRequest() {
     parent_ = "";
     ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -28,39 +46,45 @@ private LookupPublicKgRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LookupPublicKgRequest();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 @@ -69,31 +93,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 Entity's parent resource.
    * Format:
    * `projects/{project}/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 { @@ -104,34 +130,42 @@ public java.lang.String getParent() { public static final int IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ids_; /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList - getIdsList() { + public com.google.protobuf.ProtocolStringList getIdsList() { return ids_; } /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -139,53 +173,63 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { + public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } public static final int LANGUAGES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList languages_; /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_; } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -193,21 +237,24 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,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_); } @@ -266,19 +312,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.enterpriseknowledgegraph.v1.LookupPublicKgRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getIdsList() - .equals(other.getIdsList())) return false; - if (!getLanguagesList() - .equals(other.getLanguagesList())) return false; + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getIdsList().equals(other.getIdsList())) return false; + if (!getLanguagesList().equals(other.getLanguagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,96 +350,105 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
@@ -403,33 +456,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest)
       com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.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();
@@ -443,14 +496,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest getDefaultInstanceForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.getDefaultInstance();
+    public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -464,7 +519,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest build(
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest(this);
       int from_bitField0_ = bitField0_;
       result.parent_ = parent_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -485,46 +541,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest buildP
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest)other);
+        return mergeFrom(
+            (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest other) {
+      if (other
+          == com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -575,29 +636,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureIdsIsMutable();
-              ids_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLanguagesIsMutable();
-              languages_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureIdsIsMutable();
+                ids_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLanguagesIsMutable();
+                languages_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,24 +672,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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; @@ -633,22 +703,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 { @@ -656,101 +729,123 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ids_ = new com.google.protobuf.LazyStringArrayList(ids_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList - getIdsList() { + public com.google.protobuf.ProtocolStringList getIdsList() { return ids_.getUnmodifiableView(); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -758,80 +853,90 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { + public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The ids to set. * @return This builder for chaining. */ - public Builder setIds( - int index, java.lang.String value) { + public Builder setIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The ids to add. * @return This builder for chaining. */ - public Builder addIds( - java.lang.String value) { + public Builder addIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The ids to add. * @return This builder for chaining. */ - public Builder addAllIds( - java.lang.Iterable values) { + public Builder addAllIds(java.lang.Iterable values) { ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ids_); onChanged(); return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIds() { @@ -841,65 +946,77 @@ public Builder clearIds() { return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the ids to add. * @return This builder for chaining. */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languages_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { languages_ = new com.google.protobuf.LazyStringArrayList(languages_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_.getUnmodifiableView(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -907,85 +1024,95 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index to set the value at. * @param value The languages to set. * @return This builder for chaining. */ - public Builder setLanguages( - int index, java.lang.String value) { + public Builder setLanguages(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The languages to add. * @return This builder for chaining. */ - public Builder addLanguages( - java.lang.String value) { + public Builder addLanguages(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param values The languages to add. * @return This builder for chaining. */ - public Builder addAllLanguages( - java.lang.Iterable values) { + public Builder addAllLanguages(java.lang.Iterable values) { ensureLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return This builder for chaining. */ public Builder clearLanguages() { @@ -995,29 +1122,31 @@ public Builder clearLanguages() { return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The bytes of the languages to add. * @return This builder for chaining. */ - public Builder addLanguagesBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguagesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguagesIsMutable(); languages_.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); } @@ -1027,41 +1156,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupPublicKgRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupPublicKgRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1073,9 +1204,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java index 537ef44d64b3..cd2985741e40 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgRequestOrBuilder.java @@ -1,119 +1,164 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface LookupPublicKgRequestOrBuilder extends +public interface LookupPublicKgRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ids. */ - java.util.List - getIdsList(); + java.util.List getIdsList(); /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ids. */ int getIdsCount(); /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ids at the given index. */ java.lang.String getIds(int index); /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - com.google.protobuf.ByteString - getIdsBytes(int index); + com.google.protobuf.ByteString getIdsBytes(int index); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - java.util.List - getLanguagesList(); + java.util.List getLanguagesList(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ int getLanguagesCount(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ java.lang.String getLanguages(int index); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - com.google.protobuf.ByteString - getLanguagesBytes(int index); + com.google.protobuf.ByteString getLanguagesBytes(int index); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java similarity index 70% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java index 57ec2caf27ae..553590734891 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponse.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Response message for
  * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse}
  */
-public final class LookupPublicKgResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LookupPublicKgResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse)
     LookupPublicKgResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LookupPublicKgResponse.newBuilder() to construct.
   private LookupPublicKgResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LookupPublicKgResponse() {
-  }
+
+  private LookupPublicKgResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LookupPublicKgResponse();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.Builder.class);
   }
 
   public static final int CONTEXT_FIELD_NUMBER = 1;
   private com.google.protobuf.Value context_;
   /**
+   *
+   *
    * 
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ @java.lang.Override @@ -64,12 +85,15 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ @java.lang.Override @@ -77,6 +101,8 @@ public com.google.protobuf.Value getContext() { return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -92,11 +118,14 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
   public static final int TYPE_FIELD_NUMBER = 2;
   private com.google.protobuf.Value type_;
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ @java.lang.Override @@ -104,11 +133,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ @java.lang.Override @@ -116,6 +148,8 @@ public com.google.protobuf.Value getType() { return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -130,11 +164,14 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; private com.google.protobuf.ListValue itemListElement_; /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ @java.lang.Override @@ -142,18 +179,25 @@ public boolean hasItemListElement() { return itemListElement_ != null; } /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ @java.lang.Override public com.google.protobuf.ListValue getItemListElement() { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } /** + * + * *
    * The item list of search results.
    * 
@@ -166,6 +210,7 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +222,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 (context_ != null) { output.writeMessage(1, getContext()); } @@ -198,16 +242,13 @@ public int getSerializedSize() { size = 0; if (context_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContext()); } if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); } if (itemListElement_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getItemListElement()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getItemListElement()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +258,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.enterpriseknowledgegraph.v1.LookupPublicKgResponse)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) obj; + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse other = + (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) obj; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext() - .equals(other.getContext())) return false; + if (!getContext().equals(other.getContext())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } if (hasItemListElement() != other.hasItemListElement()) return false; if (hasItemListElement()) { - if (!getItemListElement() - .equals(other.getItemListElement())) return false; + if (!getItemListElement().equals(other.getItemListElement())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +307,105 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
@@ -365,33 +413,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse)
       com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.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();
@@ -417,14 +465,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse getDefaultInstanceForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.getDefaultInstance();
+    public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -438,7 +488,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse build
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse(this);
       if (contextBuilder_ == null) {
         result.context_ = context_;
       } else {
@@ -462,46 +513,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse build
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse)other);
+        return mergeFrom(
+            (com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse other) {
+      if (other
+          == com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse
+              .getDefaultInstance()) return this;
       if (other.hasContext()) {
         mergeContext(other.getContext());
       }
@@ -537,33 +593,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getContextFieldBuilder().getBuilder(),
-                  extensionRegistry);
+            case 10:
+              {
+                input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTypeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getItemListElementFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getItemListElementFieldBuilder().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) {
@@ -576,26 +630,35 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Value context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ public com.google.protobuf.Value getContext() { @@ -606,6 +669,8 @@ public com.google.protobuf.Value getContext() { } } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -627,6 +692,8 @@ public Builder setContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -634,8 +701,7 @@ public Builder setContext(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value context = 1;
      */
-    public Builder setContext(
-        com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setContext(com.google.protobuf.Value.Builder builderForValue) {
       if (contextBuilder_ == null) {
         context_ = builderForValue.build();
         onChanged();
@@ -646,6 +712,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -656,8 +724,7 @@ public Builder setContext(
     public Builder mergeContext(com.google.protobuf.Value value) {
       if (contextBuilder_ == null) {
         if (context_ != null) {
-          context_ =
-            com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
+          context_ = com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -669,6 +736,8 @@ public Builder mergeContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -688,6 +757,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -696,11 +767,13 @@ public Builder clearContext() {
      * .google.protobuf.Value context = 1;
      */
     public com.google.protobuf.Value.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -712,11 +785,12 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.protobuf.Value.getDefaultInstance() : context_;
+        return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_;
       }
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -725,14 +799,17 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
      * .google.protobuf.Value context = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> 
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Value,
+                com.google.protobuf.Value.Builder,
+                com.google.protobuf.ValueOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
@@ -740,24 +817,33 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
 
     private com.google.protobuf.Value type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ public com.google.protobuf.Value getType() { @@ -768,6 +854,8 @@ public com.google.protobuf.Value getType() { } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -788,14 +876,15 @@ public Builder setType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; */ - public Builder setType( - com.google.protobuf.Value.Builder builderForValue) { + public Builder setType(com.google.protobuf.Value.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -806,6 +895,8 @@ public Builder setType( return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -815,8 +906,7 @@ public Builder setType( public Builder mergeType(com.google.protobuf.Value value) { if (typeBuilder_ == null) { if (type_ != null) { - type_ = - com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + type_ = com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -828,6 +918,8 @@ public Builder mergeType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -846,6 +938,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -853,11 +947,13 @@ public Builder clearType() { * .google.protobuf.Value type = 2; */ public com.google.protobuf.Value.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -868,11 +964,12 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.protobuf.Value.getDefaultInstance() : type_; + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -880,14 +977,16 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { * .google.protobuf.Value type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -895,34 +994,47 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { private com.google.protobuf.ListValue itemListElement_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> + itemListElementBuilder_; /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ public boolean hasItemListElement() { return itemListElementBuilder_ != null || itemListElement_ != null; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ public com.google.protobuf.ListValue getItemListElement() { if (itemListElementBuilder_ == null) { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } else { return itemListElementBuilder_.getMessage(); } } /** + * + * *
      * The item list of search results.
      * 
@@ -943,14 +1055,15 @@ public Builder setItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; */ - public Builder setItemListElement( - com.google.protobuf.ListValue.Builder builderForValue) { + public Builder setItemListElement(com.google.protobuf.ListValue.Builder builderForValue) { if (itemListElementBuilder_ == null) { itemListElement_ = builderForValue.build(); onChanged(); @@ -961,6 +1074,8 @@ public Builder setItemListElement( return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -971,7 +1086,9 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { if (itemListElementBuilder_ == null) { if (itemListElement_ != null) { itemListElement_ = - com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + com.google.protobuf.ListValue.newBuilder(itemListElement_) + .mergeFrom(value) + .buildPartial(); } else { itemListElement_ = value; } @@ -983,6 +1100,8 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1001,6 +1120,8 @@ public Builder clearItemListElement() { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1008,11 +1129,13 @@ public Builder clearItemListElement() { * .google.protobuf.ListValue item_list_element = 3; */ public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { - + onChanged(); return getItemListElementFieldBuilder().getBuilder(); } /** + * + * *
      * The item list of search results.
      * 
@@ -1023,11 +1146,14 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { if (itemListElementBuilder_ != null) { return itemListElementBuilder_.getMessageOrBuilder(); } else { - return itemListElement_ == null ? - com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } } /** + * + * *
      * The item list of search results.
      * 
@@ -1035,21 +1161,24 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { * .google.protobuf.ListValue item_list_element = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> getItemListElementFieldBuilder() { if (itemListElementBuilder_ == null) { - itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - getItemListElement(), - getParentForChildren(), - isClean()); + itemListElementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), getParentForChildren(), isClean()); itemListElement_ = null; } return itemListElementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,41 +1188,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) - private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupPublicKgResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupPublicKgResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,9 +1236,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java index 49021a35a58f..73506701ce8e 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupPublicKgResponseOrBuilder.java @@ -1,33 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface LookupPublicKgResponseOrBuilder extends +public interface LookupPublicKgResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ com.google.protobuf.Value getContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -38,24 +62,32 @@ public interface LookupPublicKgResponseOrBuilder extends
   com.google.protobuf.ValueOrBuilder getContextOrBuilder();
 
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ com.google.protobuf.Value getType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -65,24 +97,32 @@ public interface LookupPublicKgResponseOrBuilder extends com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ boolean hasItemListElement(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ com.google.protobuf.ListValue getItemListElement(); /** + * + * *
    * The item list of search results.
    * 
diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java similarity index 70% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java index dcdf5f962885..18b122ae9e2c 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequest.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for
  * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupRequest}
  */
-public final class LookupRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LookupRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupRequest)
     LookupRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LookupRequest.newBuilder() to construct.
   private LookupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LookupRequest() {
     parent_ = "";
     ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -28,39 +46,45 @@ private LookupRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LookupRequest();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 @@ -69,31 +93,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 Entity's parent resource.
    * Format:
    * `projects/{project}/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 { @@ -104,34 +130,42 @@ public java.lang.String getParent() { public static final int IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ids_; /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList - getIdsList() { + public com.google.protobuf.ProtocolStringList getIdsList() { return ids_; } /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -139,53 +173,63 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { + public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } public static final int LANGUAGES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList languages_; /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_; } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -193,21 +237,24 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,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_); } @@ -266,19 +312,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.enterpriseknowledgegraph.v1.LookupRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getIdsList() - .equals(other.getIdsList())) return false; - if (!getLanguagesList() - .equals(other.getLanguagesList())) return false; + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getIdsList().equals(other.getIdsList())) return false; + if (!getLanguagesList().equals(other.getLanguagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,96 +350,104 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
@@ -403,33 +455,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupRequest)
       com.google.cloud.enterpriseknowledgegraph.v1.LookupRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.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();
@@ -443,9 +494,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor;
     }
 
     @java.lang.Override
@@ -464,7 +515,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest build() {
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest(this);
       int from_bitField0_ = bitField0_;
       result.parent_ = parent_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -485,38 +537,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest 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.enterpriseknowledgegraph.v1.LookupRequest) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest)other);
+        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -524,7 +577,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -575,29 +629,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureIdsIsMutable();
-              ids_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLanguagesIsMutable();
-              languages_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureIdsIsMutable();
+                ids_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLanguagesIsMutable();
+                languages_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,24 +665,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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; @@ -633,22 +696,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 { @@ -656,101 +722,123 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ids_ = new com.google.protobuf.LazyStringArrayList(ids_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList - getIdsList() { + public com.google.protobuf.ProtocolStringList getIdsList() { return ids_.getUnmodifiableView(); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -758,80 +846,90 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { + public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The ids to set. * @return This builder for chaining. */ - public Builder setIds( - int index, java.lang.String value) { + public Builder setIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The ids to add. * @return This builder for chaining. */ - public Builder addIds( - java.lang.String value) { + public Builder addIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The ids to add. * @return This builder for chaining. */ - public Builder addAllIds( - java.lang.Iterable values) { + public Builder addAllIds(java.lang.Iterable values) { ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ids_); onChanged(); return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIds() { @@ -841,65 +939,77 @@ public Builder clearIds() { return this; } /** + * + * *
      * Required. The list of entity ids to be used for lookup.
      * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the ids to add. * @return This builder for chaining. */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languages_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { languages_ = new com.google.protobuf.LazyStringArrayList(languages_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_.getUnmodifiableView(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -907,85 +1017,95 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index to set the value at. * @param value The languages to set. * @return This builder for chaining. */ - public Builder setLanguages( - int index, java.lang.String value) { + public Builder setLanguages(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The languages to add. * @return This builder for chaining. */ - public Builder addLanguages( - java.lang.String value) { + public Builder addLanguages(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param values The languages to add. * @return This builder for chaining. */ - public Builder addAllLanguages( - java.lang.Iterable values) { + public Builder addAllLanguages(java.lang.Iterable values) { ensureLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return This builder for chaining. */ public Builder clearLanguages() { @@ -995,29 +1115,31 @@ public Builder clearLanguages() { return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The bytes of the languages to add. * @return This builder for chaining. */ - public Builder addLanguagesBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguagesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguagesIsMutable(); languages_.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); } @@ -1027,12 +1149,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest(); } @@ -1041,27 +1163,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,6 +1198,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java index eb8b22e730b0..064fcd32ca48 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupRequestOrBuilder.java @@ -1,119 +1,164 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface LookupRequestOrBuilder extends +public interface LookupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ids. */ - java.util.List - getIdsList(); + java.util.List getIdsList(); /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ids. */ int getIdsCount(); /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ids at the given index. */ java.lang.String getIds(int index); /** + * + * *
    * Required. The list of entity ids to be used for lookup.
    * 
* * repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - com.google.protobuf.ByteString - getIdsBytes(int index); + com.google.protobuf.ByteString getIdsBytes(int index); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - java.util.List - getLanguagesList(); + java.util.List getLanguagesList(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ int getLanguagesCount(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ java.lang.String getLanguages(int index); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - com.google.protobuf.ByteString - getLanguagesBytes(int index); + com.google.protobuf.ByteString getLanguagesBytes(int index); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java similarity index 72% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java index 094867cf5af1..9da776403b00 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponse.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Response message for
  * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupResponse}
  */
-public final class LookupResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LookupResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.LookupResponse)
     LookupResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LookupResponse.newBuilder() to construct.
   private LookupResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LookupResponse() {
-  }
+
+  private LookupResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LookupResponse();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.Builder.class);
   }
 
   public static final int CONTEXT_FIELD_NUMBER = 1;
   private com.google.protobuf.Value context_;
   /**
+   *
+   *
    * 
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ @java.lang.Override @@ -64,12 +85,15 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ @java.lang.Override @@ -77,6 +101,8 @@ public com.google.protobuf.Value getContext() { return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -92,11 +118,14 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
   public static final int TYPE_FIELD_NUMBER = 2;
   private com.google.protobuf.Value type_;
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ @java.lang.Override @@ -104,11 +133,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ @java.lang.Override @@ -116,6 +148,8 @@ public com.google.protobuf.Value getType() { return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -130,11 +164,14 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; private com.google.protobuf.ListValue itemListElement_; /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ @java.lang.Override @@ -142,18 +179,25 @@ public boolean hasItemListElement() { return itemListElement_ != null; } /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ @java.lang.Override public com.google.protobuf.ListValue getItemListElement() { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } /** + * + * *
    * The item list of search results.
    * 
@@ -166,6 +210,7 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +222,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 (context_ != null) { output.writeMessage(1, getContext()); } @@ -198,16 +242,13 @@ public int getSerializedSize() { size = 0; if (context_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContext()); } if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); } if (itemListElement_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getItemListElement()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getItemListElement()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +258,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.enterpriseknowledgegraph.v1.LookupResponse)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse) obj; + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse other = + (com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse) obj; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext() - .equals(other.getContext())) return false; + if (!getContext().equals(other.getContext())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } if (hasItemListElement() != other.hasItemListElement()) return false; if (hasItemListElement()) { - if (!getItemListElement() - .equals(other.getItemListElement())) return false; + if (!getItemListElement().equals(other.getItemListElement())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +307,104 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.Lookup][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Lookup].
@@ -365,33 +412,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.LookupResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.LookupResponse)
       com.google.cloud.enterpriseknowledgegraph.v1.LookupResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.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();
@@ -417,9 +463,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,7 +484,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse build() {
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse(this);
       if (contextBuilder_ == null) {
         result.context_ = context_;
       } else {
@@ -462,38 +509,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse 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.enterpriseknowledgegraph.v1.LookupResponse) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse)other);
+        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -501,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.getDefaultInstance())
+        return this;
       if (other.hasContext()) {
         mergeContext(other.getContext());
       }
@@ -537,33 +586,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getContextFieldBuilder().getBuilder(),
-                  extensionRegistry);
+            case 10:
+              {
+                input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTypeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getItemListElementFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getItemListElementFieldBuilder().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) {
@@ -576,26 +623,35 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Value context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ public com.google.protobuf.Value getContext() { @@ -606,6 +662,8 @@ public com.google.protobuf.Value getContext() { } } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -627,6 +685,8 @@ public Builder setContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -634,8 +694,7 @@ public Builder setContext(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value context = 1;
      */
-    public Builder setContext(
-        com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setContext(com.google.protobuf.Value.Builder builderForValue) {
       if (contextBuilder_ == null) {
         context_ = builderForValue.build();
         onChanged();
@@ -646,6 +705,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -656,8 +717,7 @@ public Builder setContext(
     public Builder mergeContext(com.google.protobuf.Value value) {
       if (contextBuilder_ == null) {
         if (context_ != null) {
-          context_ =
-            com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
+          context_ = com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -669,6 +729,8 @@ public Builder mergeContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -688,6 +750,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -696,11 +760,13 @@ public Builder clearContext() {
      * .google.protobuf.Value context = 1;
      */
     public com.google.protobuf.Value.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -712,11 +778,12 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.protobuf.Value.getDefaultInstance() : context_;
+        return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_;
       }
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -725,14 +792,17 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
      * .google.protobuf.Value context = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> 
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Value,
+                com.google.protobuf.Value.Builder,
+                com.google.protobuf.ValueOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
@@ -740,24 +810,33 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
 
     private com.google.protobuf.Value type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ public com.google.protobuf.Value getType() { @@ -768,6 +847,8 @@ public com.google.protobuf.Value getType() { } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -788,14 +869,15 @@ public Builder setType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; */ - public Builder setType( - com.google.protobuf.Value.Builder builderForValue) { + public Builder setType(com.google.protobuf.Value.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -806,6 +888,8 @@ public Builder setType( return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -815,8 +899,7 @@ public Builder setType( public Builder mergeType(com.google.protobuf.Value value) { if (typeBuilder_ == null) { if (type_ != null) { - type_ = - com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + type_ = com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -828,6 +911,8 @@ public Builder mergeType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -846,6 +931,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -853,11 +940,13 @@ public Builder clearType() { * .google.protobuf.Value type = 2; */ public com.google.protobuf.Value.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -868,11 +957,12 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.protobuf.Value.getDefaultInstance() : type_; + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -880,14 +970,16 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { * .google.protobuf.Value type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -895,34 +987,47 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { private com.google.protobuf.ListValue itemListElement_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> + itemListElementBuilder_; /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ public boolean hasItemListElement() { return itemListElementBuilder_ != null || itemListElement_ != null; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ public com.google.protobuf.ListValue getItemListElement() { if (itemListElementBuilder_ == null) { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } else { return itemListElementBuilder_.getMessage(); } } /** + * + * *
      * The item list of search results.
      * 
@@ -943,14 +1048,15 @@ public Builder setItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; */ - public Builder setItemListElement( - com.google.protobuf.ListValue.Builder builderForValue) { + public Builder setItemListElement(com.google.protobuf.ListValue.Builder builderForValue) { if (itemListElementBuilder_ == null) { itemListElement_ = builderForValue.build(); onChanged(); @@ -961,6 +1067,8 @@ public Builder setItemListElement( return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -971,7 +1079,9 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { if (itemListElementBuilder_ == null) { if (itemListElement_ != null) { itemListElement_ = - com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + com.google.protobuf.ListValue.newBuilder(itemListElement_) + .mergeFrom(value) + .buildPartial(); } else { itemListElement_ = value; } @@ -983,6 +1093,8 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1001,6 +1113,8 @@ public Builder clearItemListElement() { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1008,11 +1122,13 @@ public Builder clearItemListElement() { * .google.protobuf.ListValue item_list_element = 3; */ public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { - + onChanged(); return getItemListElementFieldBuilder().getBuilder(); } /** + * + * *
      * The item list of search results.
      * 
@@ -1023,11 +1139,14 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { if (itemListElementBuilder_ != null) { return itemListElementBuilder_.getMessageOrBuilder(); } else { - return itemListElement_ == null ? - com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } } /** + * + * *
      * The item list of search results.
      * 
@@ -1035,21 +1154,24 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { * .google.protobuf.ListValue item_list_element = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> getItemListElementFieldBuilder() { if (itemListElementBuilder_ == null) { - itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - getItemListElement(), - getParentForChildren(), - isClean()); + itemListElementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), getParentForChildren(), isClean()); itemListElement_ = null; } return itemListElementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) private static final com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse(); } @@ -1073,27 +1195,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1108,6 +1230,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java index ff9baf1005f6..a9855494e60e 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LookupResponseOrBuilder.java @@ -1,33 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface LookupResponseOrBuilder extends +public interface LookupResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.LookupResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ com.google.protobuf.Value getContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -38,24 +62,32 @@ public interface LookupResponseOrBuilder extends
   com.google.protobuf.ValueOrBuilder getContextOrBuilder();
 
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ com.google.protobuf.Value getType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -65,24 +97,32 @@ public interface LookupResponseOrBuilder extends com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ boolean hasItemListElement(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ com.google.protobuf.ListValue getItemListElement(); /** + * + * *
    * The item list of search results.
    * 
diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java new file mode 100644 index 000000000000..a08e9bc12789 --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.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/enterpriseknowledgegraph/v1/operation_metadata.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public final class OperationMetadataProto { + private OperationMetadataProto() {} + + 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_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_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/enterpriseknowledgegraph/" + + "v1/operation_metadata.proto\022(google.clou" + + "d.enterpriseknowledgegraph.v1\032\037google/pr" + + "otobuf/timestamp.proto\"\307\002\n\027CommonOperati" + + "onMetadata\022V\n\005state\030\001 \001(\0162G.google.cloud" + + ".enterpriseknowledgegraph.v1.CommonOpera" + + "tionMetadata.State\022/\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\022/\n\013update_ti" + + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"r\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020" + + "\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAIL" + + "ED\020\004\022\r\n\tCANCELLED\020\005\022\013\n\007PENDING\020\006B\256\002\n,com" + + ".google.cloud.enterpriseknowledgegraph.v" + + "1B\026OperationMetadataProtoP\001Z`google.gola" + + "ng.org/genproto/googleapis/cloud/enterpr" + + "iseknowledgegraph/v1;enterpriseknowledge" + + "graph\252\002(Google.Cloud.EnterpriseKnowledge" + + "Graph.V1\312\002(Google\\Cloud\\EnterpriseKnowle" + + "dgeGraph\\V1\352\002+Google::Cloud::EnterpriseK" + + "nowledgeGraph::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor, + new java.lang.String[] { + "State", "CreateTime", "UpdateTime", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java similarity index 66% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java index f9cbefcf508b..28eda8ad3807 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OutputConfig() { bigqueryDataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); } public static final int BIGQUERY_DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object bigqueryDataset_; /** + * + * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bigqueryDataset. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getBigqueryDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryDataset_ = s; return s; } } /** + * + * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for bigqueryDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getBigqueryDatasetBytes() { + public com.google.protobuf.ByteString getBigqueryDatasetBytes() { java.lang.Object ref = bigqueryDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigqueryDataset_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getBigqueryDataset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigqueryDataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bigqueryDataset_); } @@ -131,15 +153,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.enterpriseknowledgegraph.v1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig) obj; - if (!getBigqueryDataset() - .equals(other.getBigqueryDataset())) return false; + if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +181,136 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) com.google.cloud.enterpriseknowledgegraph.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; } @java.lang.Override @@ -312,7 +341,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig(this); result.bigqueryDataset_ = bigqueryDataset_; onBuilt(); return result; @@ -322,38 +352,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig 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.enterpriseknowledgegraph.v1.OutputConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig)other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -361,7 +392,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig.getDefaultInstance()) + return this; if (!other.getBigqueryDataset().isEmpty()) { bigqueryDataset_ = other.bigqueryDataset_; onChanged(); @@ -392,17 +424,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - bigqueryDataset_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + bigqueryDataset_ = 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 +449,20 @@ public Builder mergeFrom( private java.lang.Object bigqueryDataset_ = ""; /** + * + * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bigqueryDataset. */ public java.lang.String getBigqueryDataset() { java.lang.Object ref = bigqueryDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryDataset_ = s; return s; @@ -435,20 +471,21 @@ public java.lang.String getBigqueryDataset() { } } /** + * + * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for bigqueryDataset. */ - public com.google.protobuf.ByteString - getBigqueryDatasetBytes() { + public com.google.protobuf.ByteString getBigqueryDatasetBytes() { java.lang.Object ref = bigqueryDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigqueryDataset_ = b; return b; } else { @@ -456,61 +493,68 @@ public java.lang.String getBigqueryDataset() { } } /** + * + * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bigqueryDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryDataset( - java.lang.String value) { + public Builder setBigqueryDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bigqueryDataset_ = value; onChanged(); return this; } /** + * + * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearBigqueryDataset() { - + bigqueryDataset_ = getDefaultInstance().getBigqueryDataset(); onChanged(); return this; } /** + * + * *
      * Format is “projects/*/datasets/*”.
      * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for bigqueryDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setBigqueryDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigqueryDataset_ = 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 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) private static final com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig(); } @@ -534,27 +578,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java index 62871c6311c2..d5a9f52db6a7 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OutputConfigOrBuilder.java @@ -1,29 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bigqueryDataset. */ java.lang.String getBigqueryDataset(); /** + * + * *
    * Format is “projects/*/datasets/*”.
    * 
* * string bigquery_dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for bigqueryDataset. */ - com.google.protobuf.ByteString - getBigqueryDatasetBytes(); + com.google.protobuf.ByteString getBigqueryDatasetBytes(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java similarity index 100% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java similarity index 65% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java index 2de3077e21c5..f294a2cf7d6f 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfig.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Recon configs
  * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig} */ -public final class ReconConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReconConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) ReconConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReconConfig.newBuilder() to construct. private ReconConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReconConfig() { - } + + private ReconConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReconConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); } - public interface OptionsOrBuilder extends + public interface OptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * If true, separate clusters by their geographic region (from geocoding).
      * Uses the following entity features:
@@ -62,57 +83,63 @@ public interface OptionsOrBuilder extends
      * 
* * bool enable_geocoding_separation = 100; + * * @return The enableGeocodingSeparation. */ boolean getEnableGeocodingSeparation(); } /** + * + * *
    * Options for experimental changes on entity clustering behavior.
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options} */ - public static final class Options extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Options extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) OptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Options.newBuilder() to construct. private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Options() { - } + + private Options() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Options(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); } public static final int ENABLE_GEOCODING_SEPARATION_FIELD_NUMBER = 100; private boolean enableGeocodingSeparation_; /** + * + * *
      * If true, separate clusters by their geographic region (from geocoding).
      * Uses the following entity features:
@@ -123,6 +150,7 @@ protected java.lang.Object newInstance(
      * 
* * bool enable_geocoding_separation = 100; + * * @return The enableGeocodingSeparation. */ @java.lang.Override @@ -131,6 +159,7 @@ public boolean getEnableGeocodingSeparation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +171,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 (enableGeocodingSeparation_ != false) { output.writeBool(100, enableGeocodingSeparation_); } @@ -157,8 +185,8 @@ public int getSerializedSize() { size = 0; if (enableGeocodingSeparation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(100, enableGeocodingSeparation_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(100, enableGeocodingSeparation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,15 +196,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.enterpriseknowledgegraph.v1.ReconConfig.Options)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other = (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other = + (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) obj; - if (getEnableGeocodingSeparation() - != other.getEnableGeocodingSeparation()) return false; + if (getEnableGeocodingSeparation() != other.getEnableGeocodingSeparation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,95 +217,102 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_GEOCODING_SEPARATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableGeocodingSeparation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGeocodingSeparation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -287,39 +322,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options for experimental changes on entity clustering behavior.
      * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.class, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.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(); @@ -329,14 +367,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + .getDefaultInstance(); } @java.lang.Override @@ -350,7 +390,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options build() @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options result = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options(this); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options result = + new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options(this); result.enableGeocodingSeparation_ = enableGeocodingSeparation_; onBuilt(); return result; @@ -360,46 +401,53 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options 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) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + .getDefaultInstance()) return this; if (other.getEnableGeocodingSeparation() != false) { setEnableGeocodingSeparation(other.getEnableGeocodingSeparation()); } @@ -429,17 +477,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 800: { - enableGeocodingSeparation_ = input.readBool(); - - break; - } // case 800 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 800: + { + enableGeocodingSeparation_ = input.readBool(); + + break; + } // case 800 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -450,8 +500,10 @@ public Builder mergeFrom( return this; } - private boolean enableGeocodingSeparation_ ; + private boolean enableGeocodingSeparation_; /** + * + * *
        * If true, separate clusters by their geographic region (from geocoding).
        * Uses the following entity features:
@@ -462,6 +514,7 @@ public Builder mergeFrom(
        * 
* * bool enable_geocoding_separation = 100; + * * @return The enableGeocodingSeparation. */ @java.lang.Override @@ -469,6 +522,8 @@ public boolean getEnableGeocodingSeparation() { return enableGeocodingSeparation_; } /** + * + * *
        * If true, separate clusters by their geographic region (from geocoding).
        * Uses the following entity features:
@@ -479,16 +534,19 @@ public boolean getEnableGeocodingSeparation() {
        * 
* * bool enable_geocoding_separation = 100; + * * @param value The enableGeocodingSeparation to set. * @return This builder for chaining. */ public Builder setEnableGeocodingSeparation(boolean value) { - + enableGeocodingSeparation_ = value; onChanged(); return this; } /** + * + * *
        * If true, separate clusters by their geographic region (from geocoding).
        * Uses the following entity features:
@@ -499,14 +557,16 @@ public Builder setEnableGeocodingSeparation(boolean value) {
        * 
* * bool enable_geocoding_separation = 100; + * * @return This builder for chaining. */ public Builder clearEnableGeocodingSeparation() { - + enableGeocodingSeparation_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -519,41 +579,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Options parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Options parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -565,76 +628,90 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ModelConfigOrBuilder extends + public interface ModelConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; + * * @return The modelName. */ java.lang.String getModelName(); /** + * + * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; + * * @return The bytes for modelName. */ - com.google.protobuf.ByteString - getModelNameBytes(); + com.google.protobuf.ByteString getModelNameBytes(); /** + * + * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; + * * @return The versionTag. */ java.lang.String getVersionTag(); /** + * + * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; + * * @return The bytes for versionTag. */ - com.google.protobuf.ByteString - getVersionTagBytes(); + com.google.protobuf.ByteString getVersionTagBytes(); } /** + * + * *
    * Model Configs
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig} */ - public static final class ModelConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ModelConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) ModelConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModelConfig.newBuilder() to construct. private ModelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModelConfig() { modelName_ = ""; versionTag_ = ""; @@ -642,38 +719,42 @@ private ModelConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModelConfig(); } @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); } public static final int MODEL_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object modelName_; /** + * + * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; + * * @return The modelName. */ @java.lang.Override @@ -682,30 +763,30 @@ public java.lang.String getModelName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelName_ = s; return s; } } /** + * + * *
      * Model name. Refer to external documentation for valid names.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string model_name = 1; + * * @return The bytes for modelName. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelNameBytes() { + public com.google.protobuf.ByteString getModelNameBytes() { java.lang.Object ref = modelName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelName_ = b; return b; } else { @@ -716,12 +797,15 @@ public java.lang.String getModelName() { public static final int VERSION_TAG_FIELD_NUMBER = 2; private volatile java.lang.Object versionTag_; /** + * + * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; + * * @return The versionTag. */ @java.lang.Override @@ -730,30 +814,30 @@ public java.lang.String getVersionTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionTag_ = s; return s; } } /** + * + * *
      * Model version tag. Refer to external documentation for valid tags.
      * If unspecified, it defaults to the one mentioned in the documentation.
      * 
* * string version_tag = 2; + * * @return The bytes for versionTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionTagBytes() { + public com.google.protobuf.ByteString getVersionTagBytes() { java.lang.Object ref = versionTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionTag_ = b; return b; } else { @@ -762,6 +846,7 @@ public java.lang.String getVersionTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -773,8 +858,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(modelName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelName_); } @@ -804,17 +888,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.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) obj; - if (!getModelName() - .equals(other.getModelName())) return false; - if (!getVersionTag() - .equals(other.getVersionTag())) return false; + if (!getModelName().equals(other.getModelName())) return false; + if (!getVersionTag().equals(other.getVersionTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -836,87 +919,95 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -926,39 +1017,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Model Configs
      * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder.class); } - // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.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(); @@ -970,19 +1064,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getDefaultInstanceForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance(); + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + getDefaultInstanceForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig build() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -991,7 +1088,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig buil @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig(this); result.modelName_ = modelName_; result.versionTag_ = versionTag_; onBuilt(); @@ -1002,46 +1100,53 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig)other); + return mergeFrom( + (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig other) { + if (other + == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + .getDefaultInstance()) return this; if (!other.getModelName().isEmpty()) { modelName_ = other.modelName_; onChanged(); @@ -1076,22 +1181,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - modelName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - versionTag_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + modelName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + versionTag_ = 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) { @@ -1104,19 +1212,21 @@ public Builder mergeFrom( private java.lang.Object modelName_ = ""; /** + * + * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; + * * @return The modelName. */ public java.lang.String getModelName() { java.lang.Object ref = modelName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelName_ = s; return s; @@ -1125,21 +1235,22 @@ public java.lang.String getModelName() { } } /** + * + * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; + * * @return The bytes for modelName. */ - public com.google.protobuf.ByteString - getModelNameBytes() { + public com.google.protobuf.ByteString getModelNameBytes() { java.lang.Object ref = modelName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelName_ = b; return b; } else { @@ -1147,57 +1258,64 @@ public java.lang.String getModelName() { } } /** + * + * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; + * * @param value The modelName to set. * @return This builder for chaining. */ - public Builder setModelName( - java.lang.String value) { + public Builder setModelName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + modelName_ = value; onChanged(); return this; } /** + * + * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; + * * @return This builder for chaining. */ public Builder clearModelName() { - + modelName_ = getDefaultInstance().getModelName(); onChanged(); return this; } /** + * + * *
        * Model name. Refer to external documentation for valid names.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string model_name = 1; + * * @param value The bytes for modelName to set. * @return This builder for chaining. */ - public Builder setModelNameBytes( - com.google.protobuf.ByteString value) { + public Builder setModelNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelName_ = value; onChanged(); return this; @@ -1205,19 +1323,21 @@ public Builder setModelNameBytes( private java.lang.Object versionTag_ = ""; /** + * + * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; + * * @return The versionTag. */ public java.lang.String getVersionTag() { java.lang.Object ref = versionTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionTag_ = s; return s; @@ -1226,21 +1346,22 @@ public java.lang.String getVersionTag() { } } /** + * + * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; + * * @return The bytes for versionTag. */ - public com.google.protobuf.ByteString - getVersionTagBytes() { + public com.google.protobuf.ByteString getVersionTagBytes() { java.lang.Object ref = versionTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionTag_ = b; return b; } else { @@ -1248,61 +1369,69 @@ public java.lang.String getVersionTag() { } } /** + * + * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; + * * @param value The versionTag to set. * @return This builder for chaining. */ - public Builder setVersionTag( - java.lang.String value) { + public Builder setVersionTag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + versionTag_ = value; onChanged(); return this; } /** + * + * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; + * * @return This builder for chaining. */ public Builder clearVersionTag() { - + versionTag_ = getDefaultInstance().getVersionTag(); onChanged(); return this; } /** + * + * *
        * Model version tag. Refer to external documentation for valid tags.
        * If unspecified, it defaults to the one mentioned in the documentation.
        * 
* * string version_tag = 2; + * * @param value The bytes for versionTag to set. * @return This builder for chaining. */ - public Builder setVersionTagBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionTagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + versionTag_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1315,41 +1444,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig) - private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,21 +1493,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int clusteringConfigCase_ = 0; private java.lang.Object clusteringConfig_; + public enum ClusteringConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTED_COMPONENTS_CONFIG(1), AFFINITY_CLUSTERING_CONFIG(2), CLUSTERINGCONFIG_NOT_SET(0); private final int value; + private ClusteringConfigCase(int value) { this.value = value; } @@ -1391,30 +1526,38 @@ public static ClusteringConfigCase valueOf(int value) { public static ClusteringConfigCase forNumber(int value) { switch (value) { - case 1: return CONNECTED_COMPONENTS_CONFIG; - case 2: return AFFINITY_CLUSTERING_CONFIG; - case 0: return CLUSTERINGCONFIG_NOT_SET; - default: return null; + case 1: + return CONNECTED_COMPONENTS_CONFIG; + case 2: + return AFFINITY_CLUSTERING_CONFIG; + case 0: + return CLUSTERINGCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ClusteringConfigCase - getClusteringConfigCase() { - return ClusteringConfigCase.forNumber( - clusteringConfigCase_); + public ClusteringConfigCase getClusteringConfigCase() { + return ClusteringConfigCase.forNumber(clusteringConfigCase_); } public static final int CONNECTED_COMPONENTS_CONFIG_FIELD_NUMBER = 1; /** + * + * *
    * Configs for connected components.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * * @return Whether the connectedComponentsConfig field is set. */ @java.lang.Override @@ -1422,42 +1565,62 @@ public boolean hasConnectedComponentsConfig() { return clusteringConfigCase_ == 1; } /** + * + * *
    * Configs for connected components.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * * @return The connectedComponentsConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getConnectedComponentsConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + getConnectedComponentsConfig() { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } /** + * + * *
    * Configs for connected components.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder getConnectedComponentsConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder + getConnectedComponentsConfigOrBuilder() { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } public static final int AFFINITY_CLUSTERING_CONFIG_FIELD_NUMBER = 2; /** + * + * *
    * Configs for affinity clustering.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * * @return Whether the affinityClusteringConfig field is set. */ @java.lang.Override @@ -1465,43 +1628,61 @@ public boolean hasAffinityClusteringConfig() { return clusteringConfigCase_ == 2; } /** + * + * *
    * Configs for affinity clustering.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * * @return The affinityClusteringConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getAffinityClusteringConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + getAffinityClusteringConfig() { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } /** + * + * *
    * Configs for affinity clustering.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder getAffinityClusteringConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder + getAffinityClusteringConfigOrBuilder() { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options_; /** + * + * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; + * * @return Whether the options field is set. */ @java.lang.Override @@ -1509,18 +1690,25 @@ public boolean hasOptions() { return options_ != null; } /** + * + * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; + * * @return The options. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptions() { - return options_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() : options_; + return options_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() + : options_; } /** + * + * *
    * Extra options that affect entity clustering behavior.
    * 
@@ -1528,18 +1716,23 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptio * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder getOptionsOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder + getOptionsOrBuilder() { return getOptions(); } public static final int MODEL_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig modelConfig_; /** + * + * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * + * * @return Whether the modelConfig field is set. */ @java.lang.Override @@ -1547,30 +1740,41 @@ public boolean hasModelConfig() { return modelConfig_ != null; } /** + * + * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * + * * @return The modelConfig. */ @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getModelConfig() { - return modelConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() : modelConfig_; + return modelConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() + : modelConfig_; } /** + * + * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder getModelConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder + getModelConfigOrBuilder() { return getModelConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1582,13 +1786,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (clusteringConfigCase_ == 1) { - output.writeMessage(1, (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_); + output.writeMessage( + 1, + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_); } if (clusteringConfigCase_ == 2) { - output.writeMessage(2, (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_); + output.writeMessage( + 2, + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_); } if (options_ != null) { output.writeMessage(3, getOptions()); @@ -1606,20 +1815,24 @@ public int getSerializedSize() { size = 0; if (clusteringConfigCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_); } if (clusteringConfigCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_); } if (options_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions()); } if (modelConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getModelConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModelConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1629,32 +1842,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.enterpriseknowledgegraph.v1.ReconConfig)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig other = (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig) obj; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig other = + (com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig) obj; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; + if (!getOptions().equals(other.getOptions())) return false; } if (hasModelConfig() != other.hasModelConfig()) return false; if (hasModelConfig()) { - if (!getModelConfig() - .equals(other.getModelConfig())) return false; + if (!getModelConfig().equals(other.getModelConfig())) return false; } if (!getClusteringConfigCase().equals(other.getClusteringConfigCase())) return false; switch (clusteringConfigCase_) { case 1: - if (!getConnectedComponentsConfig() - .equals(other.getConnectedComponentsConfig())) return false; + if (!getConnectedComponentsConfig().equals(other.getConnectedComponentsConfig())) + return false; break; case 2: - if (!getAffinityClusteringConfig() - .equals(other.getAffinityClusteringConfig())) return false; + if (!getAffinityClusteringConfig().equals(other.getAffinityClusteringConfig())) + return false; break; case 0: default: @@ -1696,129 +1908,136 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Recon configs
    * 
* * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.ReconConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) com.google.cloud.enterpriseknowledgegraph.v1.ReconConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.class, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Builder.class); } // Construct using com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.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(); @@ -1846,9 +2065,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto + .internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; } @java.lang.Override @@ -1867,7 +2086,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig build() { @java.lang.Override public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig buildPartial() { - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig result = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig(this); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig result = + new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig(this); if (clusteringConfigCase_ == 1) { if (connectedComponentsConfigBuilder_ == null) { result.clusteringConfig_ = clusteringConfig_; @@ -1901,38 +2121,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig 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.enterpriseknowledgegraph.v1.ReconConfig) { - return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig)other); + return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig) other); } else { super.mergeFrom(other); return this; @@ -1940,7 +2161,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig other) { - if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.getDefaultInstance()) + return this; if (other.hasOptions()) { mergeOptions(other.getOptions()); } @@ -1948,17 +2170,20 @@ public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfi mergeModelConfig(other.getModelConfig()); } switch (other.getClusteringConfigCase()) { - case CONNECTED_COMPONENTS_CONFIG: { - mergeConnectedComponentsConfig(other.getConnectedComponentsConfig()); - break; - } - case AFFINITY_CLUSTERING_CONFIG: { - mergeAffinityClusteringConfig(other.getAffinityClusteringConfig()); - break; - } - case CLUSTERINGCONFIG_NOT_SET: { - break; - } + case CONNECTED_COMPONENTS_CONFIG: + { + mergeConnectedComponentsConfig(other.getConnectedComponentsConfig()); + break; + } + case AFFINITY_CLUSTERING_CONFIG: + { + mergeAffinityClusteringConfig(other.getAffinityClusteringConfig()); + break; + } + case CLUSTERINGCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1986,40 +2211,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConnectedComponentsConfigFieldBuilder().getBuilder(), - extensionRegistry); - clusteringConfigCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getAffinityClusteringConfigFieldBuilder().getBuilder(), - extensionRegistry); - clusteringConfigCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage( + getConnectedComponentsConfigFieldBuilder().getBuilder(), extensionRegistry); + clusteringConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getAffinityClusteringConfigFieldBuilder().getBuilder(), extensionRegistry); + clusteringConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - input.readMessage( - getModelConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage(getModelConfigFieldBuilder().getBuilder(), extensionRegistry); - 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) { @@ -2029,12 +2253,12 @@ public Builder mergeFrom( } // finally return this; } + private int clusteringConfigCase_ = 0; private java.lang.Object clusteringConfig_; - public ClusteringConfigCase - getClusteringConfigCase() { - return ClusteringConfigCase.forNumber( - clusteringConfigCase_); + + public ClusteringConfigCase getClusteringConfigCase() { + return ClusteringConfigCase.forNumber(clusteringConfigCase_); } public Builder clearClusteringConfig() { @@ -2044,15 +2268,22 @@ public Builder clearClusteringConfig() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> connectedComponentsConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> + connectedComponentsConfigBuilder_; /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * * @return Whether the connectedComponentsConfig field is set. */ @java.lang.Override @@ -2060,35 +2291,49 @@ public boolean hasConnectedComponentsConfig() { return clusteringConfigCase_ == 1; } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * * @return The connectedComponentsConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getConnectedComponentsConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + getConnectedComponentsConfig() { if (connectedComponentsConfigBuilder_ == null) { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } else { if (clusteringConfigCase_ == 1) { return connectedComponentsConfigBuilder_.getMessage(); } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ - public Builder setConnectedComponentsConfig(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { + public Builder setConnectedComponentsConfig( + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { if (connectedComponentsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2102,14 +2347,19 @@ public Builder setConnectedComponentsConfig(com.google.cloud.enterpriseknowledge return this; } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ public Builder setConnectedComponentsConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder + builderForValue) { if (connectedComponentsConfigBuilder_ == null) { clusteringConfig_ = builderForValue.build(); onChanged(); @@ -2120,18 +2370,29 @@ public Builder setConnectedComponentsConfig( return this; } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ - public Builder mergeConnectedComponentsConfig(com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { + public Builder mergeConnectedComponentsConfig( + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig value) { if (connectedComponentsConfigBuilder_ == null) { - if (clusteringConfigCase_ == 1 && - clusteringConfig_ != com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance()) { - clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.newBuilder((com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_) - .mergeFrom(value).buildPartial(); + if (clusteringConfigCase_ == 1 + && clusteringConfig_ + != com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance()) { + clusteringConfig_ = + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.newBuilder( + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_) + .mergeFrom(value) + .buildPartial(); } else { clusteringConfig_ = value; } @@ -2147,11 +2408,15 @@ public Builder mergeConnectedComponentsConfig(com.google.cloud.enterpriseknowled return this; } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ public Builder clearConnectedComponentsConfig() { if (connectedComponentsConfigBuilder_ == null) { @@ -2170,67 +2435,100 @@ public Builder clearConnectedComponentsConfig() { return this; } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder getConnectedComponentsConfigBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder + getConnectedComponentsConfigBuilder() { return getConnectedComponentsConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder getConnectedComponentsConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder + getConnectedComponentsConfigOrBuilder() { if ((clusteringConfigCase_ == 1) && (connectedComponentsConfigBuilder_ != null)) { return connectedComponentsConfigBuilder_.getMessageOrBuilder(); } else { if (clusteringConfigCase_ == 1) { - return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } } /** + * + * *
      * Configs for connected components.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder> getConnectedComponentsConfigFieldBuilder() { if (connectedComponentsConfigBuilder_ == null) { if (!(clusteringConfigCase_ == 1)) { - clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.getDefaultInstance(); + clusteringConfig_ = + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + .getDefaultInstance(); } - connectedComponentsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder>( - (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) clusteringConfig_, + connectedComponentsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder>( + (com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) + clusteringConfig_, getParentForChildren(), isClean()); clusteringConfig_ = null; } clusteringConfigCase_ = 1; - onChanged();; + onChanged(); + ; return connectedComponentsConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> affinityClusteringConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> + affinityClusteringConfigBuilder_; /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * * @return Whether the affinityClusteringConfig field is set. */ @java.lang.Override @@ -2238,35 +2536,49 @@ public boolean hasAffinityClusteringConfig() { return clusteringConfigCase_ == 2; } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * * @return The affinityClusteringConfig. */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getAffinityClusteringConfig() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + getAffinityClusteringConfig() { if (affinityClusteringConfigBuilder_ == null) { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } else { if (clusteringConfigCase_ == 2) { return affinityClusteringConfigBuilder_.getMessage(); } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ - public Builder setAffinityClusteringConfig(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { + public Builder setAffinityClusteringConfig( + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { if (affinityClusteringConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2280,14 +2592,19 @@ public Builder setAffinityClusteringConfig(com.google.cloud.enterpriseknowledgeg return this; } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ public Builder setAffinityClusteringConfig( - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder + builderForValue) { if (affinityClusteringConfigBuilder_ == null) { clusteringConfig_ = builderForValue.build(); onChanged(); @@ -2298,18 +2615,29 @@ public Builder setAffinityClusteringConfig( return this; } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ - public Builder mergeAffinityClusteringConfig(com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { + public Builder mergeAffinityClusteringConfig( + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig value) { if (affinityClusteringConfigBuilder_ == null) { - if (clusteringConfigCase_ == 2 && - clusteringConfig_ != com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance()) { - clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.newBuilder((com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_) - .mergeFrom(value).buildPartial(); + if (clusteringConfigCase_ == 2 + && clusteringConfig_ + != com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance()) { + clusteringConfig_ = + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.newBuilder( + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_) + .mergeFrom(value) + .buildPartial(); } else { clusteringConfig_ = value; } @@ -2325,11 +2653,15 @@ public Builder mergeAffinityClusteringConfig(com.google.cloud.enterpriseknowledg return this; } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ public Builder clearAffinityClusteringConfig() { if (affinityClusteringConfigBuilder_ == null) { @@ -2348,96 +2680,135 @@ public Builder clearAffinityClusteringConfig() { return this; } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder getAffinityClusteringConfigBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder + getAffinityClusteringConfigBuilder() { return getAffinityClusteringConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder getAffinityClusteringConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder + getAffinityClusteringConfigOrBuilder() { if ((clusteringConfigCase_ == 2) && (affinityClusteringConfigBuilder_ != null)) { return affinityClusteringConfigBuilder_.getMessageOrBuilder(); } else { if (clusteringConfigCase_ == 2) { - return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_; + return (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_; } - return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + return com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } } /** + * + * *
      * Configs for affinity clustering.
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder> getAffinityClusteringConfigFieldBuilder() { if (affinityClusteringConfigBuilder_ == null) { if (!(clusteringConfigCase_ == 2)) { - clusteringConfig_ = com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.getDefaultInstance(); + clusteringConfig_ = + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + .getDefaultInstance(); } - affinityClusteringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder>( - (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) clusteringConfig_, + affinityClusteringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder>( + (com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) + clusteringConfig_, getParentForChildren(), isClean()); clusteringConfig_ = null; } clusteringConfigCase_ = 2; - onChanged();; + onChanged(); + ; return affinityClusteringConfigBuilder_; } private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> optionsBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> + optionsBuilder_; /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; + * * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; + * * @return The options. */ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptions() { if (optionsBuilder_ == null) { - return options_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() : options_; + return options_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() + : options_; } else { return optionsBuilder_.getMessage(); } } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public Builder setOptions(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { + public Builder setOptions( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2451,6 +2822,8 @@ public Builder setOptions(com.google.cloud.enterpriseknowledgegraph.v1.ReconConf return this; } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
@@ -2469,17 +2842,22 @@ public Builder setOptions( return this; } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public Builder mergeOptions(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { + public Builder mergeOptions( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options value) { if (optionsBuilder_ == null) { if (options_ != null) { options_ = - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.newBuilder(options_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.newBuilder(options_) + .mergeFrom(value) + .buildPartial(); } else { options_ = value; } @@ -2491,6 +2869,8 @@ public Builder mergeOptions(com.google.cloud.enterpriseknowledgegraph.v1.ReconCo return this; } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
@@ -2509,33 +2889,42 @@ public Builder clearOptions() { return this; } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder getOptionsBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder + getOptionsBuilder() { + onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder getOptionsOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder + getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { - return options_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() : options_; + return options_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.getDefaultInstance() + : options_; } } /** + * + * *
      * Extra options that affect entity clustering behavior.
      * 
@@ -2543,14 +2932,17 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; @@ -2558,41 +2950,59 @@ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder private com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig modelConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> modelConfigBuilder_; + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> + modelConfigBuilder_; /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * + * * @return Whether the modelConfig field is set. */ public boolean hasModelConfig() { return modelConfigBuilder_ != null || modelConfig_ != null; } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * + * * @return The modelConfig. */ public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getModelConfig() { if (modelConfigBuilder_ == null) { - return modelConfig_ == null ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() : modelConfig_; + return modelConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + .getDefaultInstance() + : modelConfig_; } else { return modelConfigBuilder_.getMessage(); } } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ - public Builder setModelConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { + public Builder setModelConfig( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { if (modelConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2606,14 +3016,18 @@ public Builder setModelConfig(com.google.cloud.enterpriseknowledgegraph.v1.Recon return this; } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ public Builder setModelConfig( - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder builderForValue) { + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder + builderForValue) { if (modelConfigBuilder_ == null) { modelConfig_ = builderForValue.build(); onChanged(); @@ -2624,17 +3038,24 @@ public Builder setModelConfig( return this; } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ - public Builder mergeModelConfig(com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { + public Builder mergeModelConfig( + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig value) { if (modelConfigBuilder_ == null) { if (modelConfig_ != null) { modelConfig_ = - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.newBuilder(modelConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.newBuilder( + modelConfig_) + .mergeFrom(value) + .buildPartial(); } else { modelConfig_ = value; } @@ -2646,11 +3067,14 @@ public Builder mergeModelConfig(com.google.cloud.enterpriseknowledgegraph.v1.Rec return this; } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ public Builder clearModelConfig() { if (modelConfigBuilder_ == null) { @@ -2664,55 +3088,71 @@ public Builder clearModelConfig() { return this; } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder getModelConfigBuilder() { - + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder + getModelConfigBuilder() { + onChanged(); return getModelConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder getModelConfigOrBuilder() { + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder + getModelConfigOrBuilder() { if (modelConfigBuilder_ != null) { return modelConfigBuilder_.getMessageOrBuilder(); } else { - return modelConfig_ == null ? - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.getDefaultInstance() : modelConfig_; + return modelConfig_ == null + ? com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig + .getDefaultInstance() + : modelConfig_; } } /** + * + * *
      * Model Configs
      * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder> getModelConfigFieldBuilder() { if (modelConfigBuilder_ == null) { - modelConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder>( - getModelConfig(), - getParentForChildren(), - isClean()); + modelConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig.Builder, + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder>( + getModelConfig(), getParentForChildren(), isClean()); modelConfig_ = null; } return modelConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2722,12 +3162,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) private static final com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig(); } @@ -2736,27 +3176,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReconConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2771,6 +3211,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java similarity index 58% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java index 7c7443c8cc45..6257e80834d3 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ReconConfigOrBuilder.java @@ -1,85 +1,141 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface ReconConfigOrBuilder extends +public interface ReconConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ReconConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Configs for connected components.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * * @return Whether the connectedComponentsConfig field is set. */ boolean hasConnectedComponentsConfig(); /** + * + * *
    * Configs for connected components.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * * @return The connectedComponentsConfig. */ - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig getConnectedComponentsConfig(); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig + getConnectedComponentsConfig(); /** + * + * *
    * Configs for connected components.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * + * .google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig connected_components_config = 1; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder getConnectedComponentsConfigOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfigOrBuilder + getConnectedComponentsConfigOrBuilder(); /** + * + * *
    * Configs for affinity clustering.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * * @return Whether the affinityClusteringConfig field is set. */ boolean hasAffinityClusteringConfig(); /** + * + * *
    * Configs for affinity clustering.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * * @return The affinityClusteringConfig. */ - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig getAffinityClusteringConfig(); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig + getAffinityClusteringConfig(); /** + * + * *
    * Configs for affinity clustering.
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * + * .google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig affinity_clustering_config = 2; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder getAffinityClusteringConfigOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfigOrBuilder + getAffinityClusteringConfigOrBuilder(); /** + * + * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; + * * @return Whether the options field is set. */ boolean hasOptions(); /** + * + * *
    * Extra options that affect entity clustering behavior.
    * 
* * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options options = 3; + * * @return The options. */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.Options getOptions(); /** + * + * *
    * Extra options that affect entity clustering behavior.
    * 
@@ -89,31 +145,44 @@ public interface ReconConfigOrBuilder extends com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.OptionsOrBuilder getOptionsOrBuilder(); /** + * + * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * + * * @return Whether the modelConfig field is set. */ boolean hasModelConfig(); /** + * + * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * + * * @return The modelConfig. */ com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig getModelConfig(); /** + * + * *
    * Model Configs
    * 
* - * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * .google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfig model_config = 4; + * */ - com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder getModelConfigOrBuilder(); + com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ModelConfigOrBuilder + getModelConfigOrBuilder(); - public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ClusteringConfigCase getClusteringConfigCase(); + public com.google.cloud.enterpriseknowledgegraph.v1.ReconConfig.ClusteringConfigCase + getClusteringConfigCase(); } diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java similarity index 71% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java index ccf2eca234ba..7c1cd2dd234b 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequest.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for
  * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest}
  */
-public final class SearchPublicKgRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchPublicKgRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest)
     SearchPublicKgRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchPublicKgRequest.newBuilder() to construct.
   private SearchPublicKgRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SearchPublicKgRequest() {
     parent_ = "";
     query_ = "";
@@ -29,39 +47,45 @@ private SearchPublicKgRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchPublicKgRequest();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 @@ -70,31 +94,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 Entity's parent resource.
    * Format:
    * `projects/{project}/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 { @@ -105,11 +131,14 @@ public java.lang.String getParent() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** + * + * *
    * Required. The literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ @java.lang.Override @@ -118,29 +147,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
    * Required. The literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -151,37 +180,45 @@ public java.lang.String getQuery() { public static final int LANGUAGES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList languages_; /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_; } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -189,23 +226,27 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } public static final int TYPES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList types_; /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -213,13 +254,15 @@ public java.lang.String getLanguages(int index) {
    * 
* * repeated string types = 4; + * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList - getTypesList() { + public com.google.protobuf.ProtocolStringList getTypesList() { return types_; } /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -227,12 +270,15 @@ public java.lang.String getLanguages(int index) {
    * 
* * repeated string types = 4; + * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -240,6 +286,7 @@ public int getTypesCount() {
    * 
* * repeated string types = 4; + * * @param index The index of the element to return. * @return The types at the given index. */ @@ -247,6 +294,8 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -254,22 +303,25 @@ public java.lang.String getTypes(int index) {
    * 
* * repeated string types = 4; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString - getTypesBytes(int index) { + public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } public static final int LIMIT_FIELD_NUMBER = 6; private com.google.protobuf.Int32Value limit_; /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return Whether the limit field is set. */ @java.lang.Override @@ -277,11 +329,14 @@ public boolean hasLimit() { return limit_ != null; } /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return The limit. */ @java.lang.Override @@ -289,6 +344,8 @@ public com.google.protobuf.Int32Value getLimit() { return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; } /** + * + * *
    * Limits the number of entities to be returned.
    * 
@@ -301,6 +358,7 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,8 +370,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_); } @@ -361,8 +418,7 @@ public int getSerializedSize() { size += 1 * getTypesList().size(); } if (limit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLimit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLimit()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -372,25 +428,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.enterpriseknowledgegraph.v1.SearchPublicKgRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!getLanguagesList() - .equals(other.getLanguagesList())) return false; - if (!getTypesList() - .equals(other.getTypesList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getLanguagesList().equals(other.getLanguagesList())) return false; + if (!getTypesList().equals(other.getTypesList())) return false; if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { - if (!getLimit() - .equals(other.getLimit())) return false; + if (!getLimit().equals(other.getLimit())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -425,96 +477,105 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -522,33 +583,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest)
       com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.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();
@@ -570,14 +631,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest getDefaultInstanceForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.getDefaultInstance();
+    public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -591,7 +654,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest build(
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest(this);
       int from_bitField0_ = bitField0_;
       result.parent_ = parent_;
       result.query_ = query_;
@@ -618,46 +682,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest buildP
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest)other);
+        return mergeFrom(
+            (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest other) {
+      if (other
+          == com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -715,41 +784,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              query_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                query_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLanguagesIsMutable();
-              languages_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureTypesIsMutable();
-              types_.add(s);
-              break;
-            } // case 34
-            case 50: {
-              input.readMessage(
-                  getLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLanguagesIsMutable();
+                languages_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureTypesIsMutable();
+                types_.add(s);
+                break;
+              } // case 34
+            case 50:
+              {
+                input.readMessage(getLimitFieldBuilder().getBuilder(), extensionRegistry);
 
-              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) {
@@ -759,24 +832,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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; @@ -785,22 +863,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 { @@ -808,60 +889,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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; @@ -869,18 +963,20 @@ public Builder setParentBytes( private java.lang.Object query_ = ""; /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -889,20 +985,21 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -910,98 +1007,115 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { + 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 com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languages_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languages_ = new com.google.protobuf.LazyStringArrayList(languages_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_.getUnmodifiableView(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -1009,85 +1123,95 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index to set the value at. * @param value The languages to set. * @return This builder for chaining. */ - public Builder setLanguages( - int index, java.lang.String value) { + public Builder setLanguages(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The languages to add. * @return This builder for chaining. */ - public Builder addLanguages( - java.lang.String value) { + public Builder addLanguages(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param values The languages to add. * @return This builder for chaining. */ - public Builder addAllLanguages( - java.lang.Iterable values) { + public Builder addAllLanguages(java.lang.Iterable values) { ensureLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return This builder for chaining. */ public Builder clearLanguages() { @@ -1097,35 +1221,41 @@ public Builder clearLanguages() { return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The bytes of the languages to add. * @return This builder for chaining. */ - public Builder addLanguagesBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguagesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList types_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { types_ = new com.google.protobuf.LazyStringArrayList(types_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1133,13 +1263,15 @@ private void ensureTypesIsMutable() {
      * 
* * repeated string types = 4; + * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList - getTypesList() { + public com.google.protobuf.ProtocolStringList getTypesList() { return types_.getUnmodifiableView(); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1147,12 +1279,15 @@ private void ensureTypesIsMutable() {
      * 
* * repeated string types = 4; + * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1160,6 +1295,7 @@ public int getTypesCount() {
      * 
* * repeated string types = 4; + * * @param index The index of the element to return. * @return The types at the given index. */ @@ -1167,6 +1303,8 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1174,14 +1312,16 @@ public java.lang.String getTypes(int index) {
      * 
* * repeated string types = 4; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString - getTypesBytes(int index) { + public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1189,21 +1329,23 @@ public java.lang.String getTypes(int index) {
      * 
* * repeated string types = 4; + * * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ - public Builder setTypes( - int index, java.lang.String value) { + public Builder setTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTypesIsMutable(); + throw new NullPointerException(); + } + ensureTypesIsMutable(); types_.set(index, value); onChanged(); return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1211,20 +1353,22 @@ public Builder setTypes(
      * 
* * repeated string types = 4; + * * @param value The types to add. * @return This builder for chaining. */ - public Builder addTypes( - java.lang.String value) { + public Builder addTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTypesIsMutable(); + throw new NullPointerException(); + } + ensureTypesIsMutable(); types_.add(value); onChanged(); return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1232,18 +1376,19 @@ public Builder addTypes(
      * 
* * repeated string types = 4; + * * @param values The types to add. * @return This builder for chaining. */ - public Builder addAllTypes( - java.lang.Iterable values) { + public Builder addAllTypes(java.lang.Iterable values) { ensureTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, types_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); onChanged(); return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1251,6 +1396,7 @@ public Builder addAllTypes(
      * 
* * repeated string types = 4; + * * @return This builder for chaining. */ public Builder clearTypes() { @@ -1260,6 +1406,8 @@ public Builder clearTypes() { return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1267,15 +1415,15 @@ public Builder clearTypes() {
      * 
* * repeated string types = 4; + * * @param value The bytes of the types to add. * @return This builder for chaining. */ - public Builder addTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTypesIsMutable(); types_.add(value); onChanged(); @@ -1284,24 +1432,33 @@ public Builder addTypesBytes( private com.google.protobuf.Int32Value limit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> limitBuilder_; + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + limitBuilder_; /** + * + * *
      * Limits the number of entities to be returned.
      * 
* * .google.protobuf.Int32Value limit = 6; + * * @return Whether the limit field is set. */ public boolean hasLimit() { return limitBuilder_ != null || limit_ != null; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
* * .google.protobuf.Int32Value limit = 6; + * * @return The limit. */ public com.google.protobuf.Int32Value getLimit() { @@ -1312,6 +1469,8 @@ public com.google.protobuf.Int32Value getLimit() { } } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1332,14 +1491,15 @@ public Builder setLimit(com.google.protobuf.Int32Value value) { return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
* * .google.protobuf.Int32Value limit = 6; */ - public Builder setLimit( - com.google.protobuf.Int32Value.Builder builderForValue) { + public Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue) { if (limitBuilder_ == null) { limit_ = builderForValue.build(); onChanged(); @@ -1350,6 +1510,8 @@ public Builder setLimit( return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1360,7 +1522,7 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) { if (limitBuilder_ == null) { if (limit_ != null) { limit_ = - com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial(); + com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial(); } else { limit_ = value; } @@ -1372,6 +1534,8 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) { return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1390,6 +1554,8 @@ public Builder clearLimit() { return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1397,11 +1563,13 @@ public Builder clearLimit() { * .google.protobuf.Int32Value limit = 6; */ public com.google.protobuf.Int32Value.Builder getLimitBuilder() { - + onChanged(); return getLimitFieldBuilder().getBuilder(); } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1412,11 +1580,12 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { if (limitBuilder_ != null) { return limitBuilder_.getMessageOrBuilder(); } else { - return limit_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; } } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1424,21 +1593,24 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { * .google.protobuf.Int32Value limit = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> getLimitFieldBuilder() { if (limitBuilder_ == null) { - limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getLimit(), - getParentForChildren(), - isClean()); + limitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder>( + getLimit(), getParentForChildren(), isClean()); limit_ = null; } return limitBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1448,41 +1620,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) - private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchPublicKgRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchPublicKgRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,9 +1668,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java index 85306189300a..9a042b55d526 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgRequestOrBuilder.java @@ -1,102 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface SearchPublicKgRequestOrBuilder extends +public interface SearchPublicKgRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
    * Required. The literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - java.util.List - getLanguagesList(); + java.util.List getLanguagesList(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ int getLanguagesCount(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ java.lang.String getLanguages(int index); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - com.google.protobuf.ByteString - getLanguagesBytes(int index); + com.google.protobuf.ByteString getLanguagesBytes(int index); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -104,11 +146,13 @@ public interface SearchPublicKgRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @return A list containing the types. */ - java.util.List - getTypesList(); + java.util.List getTypesList(); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -116,10 +160,13 @@ public interface SearchPublicKgRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @return The count of types. */ int getTypesCount(); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -127,11 +174,14 @@ public interface SearchPublicKgRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @param index The index of the element to return. * @return The types at the given index. */ java.lang.String getTypes(int index); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -139,31 +189,39 @@ public interface SearchPublicKgRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - com.google.protobuf.ByteString - getTypesBytes(int index); + com.google.protobuf.ByteString getTypesBytes(int index); /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return Whether the limit field is set. */ boolean hasLimit(); /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return The limit. */ com.google.protobuf.Int32Value getLimit(); /** + * + * *
    * Limits the number of entities to be returned.
    * 
diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java similarity index 70% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java index ba85e76eeafd..ca74a0ec65fd 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponse.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Response message for
  * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse}
  */
-public final class SearchPublicKgResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchPublicKgResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse)
     SearchPublicKgResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchPublicKgResponse.newBuilder() to construct.
   private SearchPublicKgResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SearchPublicKgResponse() {
-  }
+
+  private SearchPublicKgResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchPublicKgResponse();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.Builder.class);
   }
 
   public static final int CONTEXT_FIELD_NUMBER = 1;
   private com.google.protobuf.Value context_;
   /**
+   *
+   *
    * 
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ @java.lang.Override @@ -64,12 +85,15 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ @java.lang.Override @@ -77,6 +101,8 @@ public com.google.protobuf.Value getContext() { return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -92,11 +118,14 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
   public static final int TYPE_FIELD_NUMBER = 2;
   private com.google.protobuf.Value type_;
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ @java.lang.Override @@ -104,11 +133,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ @java.lang.Override @@ -116,6 +148,8 @@ public com.google.protobuf.Value getType() { return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -130,11 +164,14 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; private com.google.protobuf.ListValue itemListElement_; /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ @java.lang.Override @@ -142,18 +179,25 @@ public boolean hasItemListElement() { return itemListElement_ != null; } /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ @java.lang.Override public com.google.protobuf.ListValue getItemListElement() { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } /** + * + * *
    * The item list of search results.
    * 
@@ -166,6 +210,7 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +222,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 (context_ != null) { output.writeMessage(1, getContext()); } @@ -198,16 +242,13 @@ public int getSerializedSize() { size = 0; if (context_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContext()); } if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); } if (itemListElement_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getItemListElement()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getItemListElement()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +258,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.enterpriseknowledgegraph.v1.SearchPublicKgResponse)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) obj; + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse other = + (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) obj; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext() - .equals(other.getContext())) return false; + if (!getContext().equals(other.getContext())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } if (hasItemListElement() != other.hasItemListElement()) return false; if (hasItemListElement()) { - if (!getItemListElement() - .equals(other.getItemListElement())) return false; + if (!getItemListElement().equals(other.getItemListElement())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +307,105 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -365,33 +413,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse)
       com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.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();
@@ -417,14 +465,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse getDefaultInstanceForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.getDefaultInstance();
+    public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -438,7 +488,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse build
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse(this);
       if (contextBuilder_ == null) {
         result.context_ = context_;
       } else {
@@ -462,46 +513,51 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse build
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse)other);
+        return mergeFrom(
+            (com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse other) {
+      if (other
+          == com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse
+              .getDefaultInstance()) return this;
       if (other.hasContext()) {
         mergeContext(other.getContext());
       }
@@ -537,33 +593,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getContextFieldBuilder().getBuilder(),
-                  extensionRegistry);
+            case 10:
+              {
+                input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTypeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getItemListElementFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getItemListElementFieldBuilder().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) {
@@ -576,26 +630,35 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Value context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ public com.google.protobuf.Value getContext() { @@ -606,6 +669,8 @@ public com.google.protobuf.Value getContext() { } } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -627,6 +692,8 @@ public Builder setContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -634,8 +701,7 @@ public Builder setContext(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value context = 1;
      */
-    public Builder setContext(
-        com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setContext(com.google.protobuf.Value.Builder builderForValue) {
       if (contextBuilder_ == null) {
         context_ = builderForValue.build();
         onChanged();
@@ -646,6 +712,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -656,8 +724,7 @@ public Builder setContext(
     public Builder mergeContext(com.google.protobuf.Value value) {
       if (contextBuilder_ == null) {
         if (context_ != null) {
-          context_ =
-            com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
+          context_ = com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -669,6 +736,8 @@ public Builder mergeContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -688,6 +757,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -696,11 +767,13 @@ public Builder clearContext() {
      * .google.protobuf.Value context = 1;
      */
     public com.google.protobuf.Value.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -712,11 +785,12 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.protobuf.Value.getDefaultInstance() : context_;
+        return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_;
       }
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -725,14 +799,17 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
      * .google.protobuf.Value context = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> 
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Value,
+                com.google.protobuf.Value.Builder,
+                com.google.protobuf.ValueOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
@@ -740,24 +817,33 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
 
     private com.google.protobuf.Value type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ public com.google.protobuf.Value getType() { @@ -768,6 +854,8 @@ public com.google.protobuf.Value getType() { } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -788,14 +876,15 @@ public Builder setType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; */ - public Builder setType( - com.google.protobuf.Value.Builder builderForValue) { + public Builder setType(com.google.protobuf.Value.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -806,6 +895,8 @@ public Builder setType( return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -815,8 +906,7 @@ public Builder setType( public Builder mergeType(com.google.protobuf.Value value) { if (typeBuilder_ == null) { if (type_ != null) { - type_ = - com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + type_ = com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -828,6 +918,8 @@ public Builder mergeType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -846,6 +938,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -853,11 +947,13 @@ public Builder clearType() { * .google.protobuf.Value type = 2; */ public com.google.protobuf.Value.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -868,11 +964,12 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.protobuf.Value.getDefaultInstance() : type_; + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -880,14 +977,16 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { * .google.protobuf.Value type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -895,34 +994,47 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { private com.google.protobuf.ListValue itemListElement_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> + itemListElementBuilder_; /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ public boolean hasItemListElement() { return itemListElementBuilder_ != null || itemListElement_ != null; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ public com.google.protobuf.ListValue getItemListElement() { if (itemListElementBuilder_ == null) { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } else { return itemListElementBuilder_.getMessage(); } } /** + * + * *
      * The item list of search results.
      * 
@@ -943,14 +1055,15 @@ public Builder setItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; */ - public Builder setItemListElement( - com.google.protobuf.ListValue.Builder builderForValue) { + public Builder setItemListElement(com.google.protobuf.ListValue.Builder builderForValue) { if (itemListElementBuilder_ == null) { itemListElement_ = builderForValue.build(); onChanged(); @@ -961,6 +1074,8 @@ public Builder setItemListElement( return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -971,7 +1086,9 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { if (itemListElementBuilder_ == null) { if (itemListElement_ != null) { itemListElement_ = - com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + com.google.protobuf.ListValue.newBuilder(itemListElement_) + .mergeFrom(value) + .buildPartial(); } else { itemListElement_ = value; } @@ -983,6 +1100,8 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1001,6 +1120,8 @@ public Builder clearItemListElement() { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1008,11 +1129,13 @@ public Builder clearItemListElement() { * .google.protobuf.ListValue item_list_element = 3; */ public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { - + onChanged(); return getItemListElementFieldBuilder().getBuilder(); } /** + * + * *
      * The item list of search results.
      * 
@@ -1023,11 +1146,14 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { if (itemListElementBuilder_ != null) { return itemListElementBuilder_.getMessageOrBuilder(); } else { - return itemListElement_ == null ? - com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } } /** + * + * *
      * The item list of search results.
      * 
@@ -1035,21 +1161,24 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { * .google.protobuf.ListValue item_list_element = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> getItemListElementFieldBuilder() { if (itemListElementBuilder_ == null) { - itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - getItemListElement(), - getParentForChildren(), - isClean()); + itemListElementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), getParentForChildren(), isClean()); itemListElement_ = null; } return itemListElementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,41 +1188,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) - private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse DEFAULT_INSTANCE; + private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse(); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse getDefaultInstance() { + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchPublicKgResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchPublicKgResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,9 +1236,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse getDefaultInstanceForType() { + public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java index a43d0c4262cd..7e53075e51a6 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchPublicKgResponseOrBuilder.java @@ -1,33 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface SearchPublicKgResponseOrBuilder extends +public interface SearchPublicKgResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ com.google.protobuf.Value getContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -38,24 +62,32 @@ public interface SearchPublicKgResponseOrBuilder extends
   com.google.protobuf.ValueOrBuilder getContextOrBuilder();
 
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ com.google.protobuf.Value getType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -65,24 +97,32 @@ public interface SearchPublicKgResponseOrBuilder extends com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ boolean hasItemListElement(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ com.google.protobuf.ListValue getItemListElement(); /** + * + * *
    * The item list of search results.
    * 
diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java similarity index 72% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java index 176bcfbeff91..96efd4b4d50c 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequest.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Request message for
  * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchRequest}
  */
-public final class SearchRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchRequest)
     SearchRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchRequest.newBuilder() to construct.
   private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SearchRequest() {
     parent_ = "";
     query_ = "";
@@ -29,39 +47,45 @@ private SearchRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchRequest();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 @@ -70,31 +94,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 Entity's parent resource.
    * Format:
    * `projects/{project}/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 { @@ -105,11 +131,14 @@ public java.lang.String getParent() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** + * + * *
    * Required. The literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ @java.lang.Override @@ -118,29 +147,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
    * Required. The literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -151,37 +180,45 @@ public java.lang.String getQuery() { public static final int LANGUAGES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList languages_; /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_; } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -189,23 +226,27 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } public static final int TYPES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList types_; /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -213,13 +254,15 @@ public java.lang.String getLanguages(int index) {
    * 
* * repeated string types = 4; + * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList - getTypesList() { + public com.google.protobuf.ProtocolStringList getTypesList() { return types_; } /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -227,12 +270,15 @@ public java.lang.String getLanguages(int index) {
    * 
* * repeated string types = 4; + * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -240,6 +286,7 @@ public int getTypesCount() {
    * 
* * repeated string types = 4; + * * @param index The index of the element to return. * @return The types at the given index. */ @@ -247,6 +294,8 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -254,22 +303,25 @@ public java.lang.String getTypes(int index) {
    * 
* * repeated string types = 4; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString - getTypesBytes(int index) { + public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } public static final int LIMIT_FIELD_NUMBER = 6; private com.google.protobuf.Int32Value limit_; /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return Whether the limit field is set. */ @java.lang.Override @@ -277,11 +329,14 @@ public boolean hasLimit() { return limit_ != null; } /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return The limit. */ @java.lang.Override @@ -289,6 +344,8 @@ public com.google.protobuf.Int32Value getLimit() { return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; } /** + * + * *
    * Limits the number of entities to be returned.
    * 
@@ -301,6 +358,7 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,8 +370,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_); } @@ -361,8 +418,7 @@ public int getSerializedSize() { size += 1 * getTypesList().size(); } if (limit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLimit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLimit()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -372,25 +428,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.enterpriseknowledgegraph.v1.SearchRequest)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) obj; + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest other = + (com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!getLanguagesList() - .equals(other.getLanguagesList())) return false; - if (!getTypesList() - .equals(other.getTypesList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getLanguagesList().equals(other.getLanguagesList())) return false; + if (!getTypesList().equals(other.getTypesList())) return false; if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { - if (!getLimit() - .equals(other.getLimit())) return false; + if (!getLimit().equals(other.getLimit())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -425,96 +477,104 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for
    * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -522,33 +582,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchRequest)
       com.google.cloud.enterpriseknowledgegraph.v1.SearchRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.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();
@@ -570,9 +629,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor;
     }
 
     @java.lang.Override
@@ -591,7 +650,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest build() {
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest(this);
       int from_bitField0_ = bitField0_;
       result.parent_ = parent_;
       result.query_ = query_;
@@ -618,38 +678,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest 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.enterpriseknowledgegraph.v1.SearchRequest) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest)other);
+        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -657,7 +718,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -715,41 +777,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              query_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                query_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLanguagesIsMutable();
-              languages_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureTypesIsMutable();
-              types_.add(s);
-              break;
-            } // case 34
-            case 50: {
-              input.readMessage(
-                  getLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLanguagesIsMutable();
+                languages_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureTypesIsMutable();
+                types_.add(s);
+                break;
+              } // case 34
+            case 50:
+              {
+                input.readMessage(getLimitFieldBuilder().getBuilder(), extensionRegistry);
 
-              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) {
@@ -759,24 +825,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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; @@ -785,22 +856,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 { @@ -808,60 +882,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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 name of the Entity's parent resource.
      * Format:
      * `projects/{project}/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; @@ -869,18 +956,20 @@ public Builder setParentBytes( private java.lang.Object query_ = ""; /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -889,20 +978,21 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -910,98 +1000,115 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
      * Required. The literal query string for search.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { + 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 com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languages_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languages_ = new com.google.protobuf.LazyStringArrayList(languages_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - public com.google.protobuf.ProtocolStringList - getLanguagesList() { + public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_.getUnmodifiableView(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ @@ -1009,85 +1116,95 @@ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - public com.google.protobuf.ByteString - getLanguagesBytes(int index) { + public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param index The index to set the value at. * @param value The languages to set. * @return This builder for chaining. */ - public Builder setLanguages( - int index, java.lang.String value) { + public Builder setLanguages(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The languages to add. * @return This builder for chaining. */ - public Builder addLanguages( - java.lang.String value) { + public Builder addLanguages(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param values The languages to add. * @return This builder for chaining. */ - public Builder addAllLanguages( - java.lang.Iterable values) { + public Builder addAllLanguages(java.lang.Iterable values) { ensureLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_); onChanged(); return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @return This builder for chaining. */ public Builder clearLanguages() { @@ -1097,35 +1214,41 @@ public Builder clearLanguages() { return this; } /** + * + * *
      * The list of language codes (defined in ISO 693) to run the query with,
      * e.g. 'en'.
      * 
* * repeated string languages = 3; + * * @param value The bytes of the languages to add. * @return This builder for chaining. */ - public Builder addLanguagesBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguagesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList types_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList types_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { types_ = new com.google.protobuf.LazyStringArrayList(types_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1133,13 +1256,15 @@ private void ensureTypesIsMutable() {
      * 
* * repeated string types = 4; + * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList - getTypesList() { + public com.google.protobuf.ProtocolStringList getTypesList() { return types_.getUnmodifiableView(); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1147,12 +1272,15 @@ private void ensureTypesIsMutable() {
      * 
* * repeated string types = 4; + * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1160,6 +1288,7 @@ public int getTypesCount() {
      * 
* * repeated string types = 4; + * * @param index The index of the element to return. * @return The types at the given index. */ @@ -1167,6 +1296,8 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1174,14 +1305,16 @@ public java.lang.String getTypes(int index) {
      * 
* * repeated string types = 4; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString - getTypesBytes(int index) { + public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1189,21 +1322,23 @@ public java.lang.String getTypes(int index) {
      * 
* * repeated string types = 4; + * * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ - public Builder setTypes( - int index, java.lang.String value) { + public Builder setTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTypesIsMutable(); + throw new NullPointerException(); + } + ensureTypesIsMutable(); types_.set(index, value); onChanged(); return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1211,20 +1346,22 @@ public Builder setTypes(
      * 
* * repeated string types = 4; + * * @param value The types to add. * @return This builder for chaining. */ - public Builder addTypes( - java.lang.String value) { + public Builder addTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTypesIsMutable(); + throw new NullPointerException(); + } + ensureTypesIsMutable(); types_.add(value); onChanged(); return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1232,18 +1369,19 @@ public Builder addTypes(
      * 
* * repeated string types = 4; + * * @param values The types to add. * @return This builder for chaining. */ - public Builder addAllTypes( - java.lang.Iterable values) { + public Builder addAllTypes(java.lang.Iterable values) { ensureTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, types_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); onChanged(); return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1251,6 +1389,7 @@ public Builder addAllTypes(
      * 
* * repeated string types = 4; + * * @return This builder for chaining. */ public Builder clearTypes() { @@ -1260,6 +1399,8 @@ public Builder clearTypes() { return this; } /** + * + * *
      * Restricts returned entities with these types, e.g. Person
      * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -1267,15 +1408,15 @@ public Builder clearTypes() {
      * 
* * repeated string types = 4; + * * @param value The bytes of the types to add. * @return This builder for chaining. */ - public Builder addTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTypesIsMutable(); types_.add(value); onChanged(); @@ -1284,24 +1425,33 @@ public Builder addTypesBytes( private com.google.protobuf.Int32Value limit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> limitBuilder_; + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + limitBuilder_; /** + * + * *
      * Limits the number of entities to be returned.
      * 
* * .google.protobuf.Int32Value limit = 6; + * * @return Whether the limit field is set. */ public boolean hasLimit() { return limitBuilder_ != null || limit_ != null; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
* * .google.protobuf.Int32Value limit = 6; + * * @return The limit. */ public com.google.protobuf.Int32Value getLimit() { @@ -1312,6 +1462,8 @@ public com.google.protobuf.Int32Value getLimit() { } } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1332,14 +1484,15 @@ public Builder setLimit(com.google.protobuf.Int32Value value) { return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
* * .google.protobuf.Int32Value limit = 6; */ - public Builder setLimit( - com.google.protobuf.Int32Value.Builder builderForValue) { + public Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue) { if (limitBuilder_ == null) { limit_ = builderForValue.build(); onChanged(); @@ -1350,6 +1503,8 @@ public Builder setLimit( return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1360,7 +1515,7 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) { if (limitBuilder_ == null) { if (limit_ != null) { limit_ = - com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial(); + com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial(); } else { limit_ = value; } @@ -1372,6 +1527,8 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) { return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1390,6 +1547,8 @@ public Builder clearLimit() { return this; } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1397,11 +1556,13 @@ public Builder clearLimit() { * .google.protobuf.Int32Value limit = 6; */ public com.google.protobuf.Int32Value.Builder getLimitBuilder() { - + onChanged(); return getLimitFieldBuilder().getBuilder(); } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1412,11 +1573,12 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { if (limitBuilder_ != null) { return limitBuilder_.getMessageOrBuilder(); } else { - return limit_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : limit_; + return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_; } } /** + * + * *
      * Limits the number of entities to be returned.
      * 
@@ -1424,21 +1586,24 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { * .google.protobuf.Int32Value limit = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> getLimitFieldBuilder() { if (limitBuilder_ == null) { - limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getLimit(), - getParentForChildren(), - isClean()); + limitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder>( + getLimit(), getParentForChildren(), isClean()); limit_ = null; } return limitBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1448,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest(); } @@ -1462,27 +1627,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1497,6 +1662,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java index 16f04ef5fc81..a53bb5f51076 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchRequestOrBuilder.java @@ -1,102 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface SearchRequestOrBuilder extends +public interface SearchRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 name of the Entity's parent resource.
    * Format:
    * `projects/{project}/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 literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
    * Required. The literal query string for search.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return A list containing the languages. */ - java.util.List - getLanguagesList(); + java.util.List getLanguagesList(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @return The count of languages. */ int getLanguagesCount(); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the element to return. * @return The languages at the given index. */ java.lang.String getLanguages(int index); /** + * + * *
    * The list of language codes (defined in ISO 693) to run the query with,
    * e.g. 'en'.
    * 
* * repeated string languages = 3; + * * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ - com.google.protobuf.ByteString - getLanguagesBytes(int index); + com.google.protobuf.ByteString getLanguagesBytes(int index); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -104,11 +146,13 @@ public interface SearchRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @return A list containing the types. */ - java.util.List - getTypesList(); + java.util.List getTypesList(); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -116,10 +160,13 @@ public interface SearchRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @return The count of types. */ int getTypesCount(); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -127,11 +174,14 @@ public interface SearchRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @param index The index of the element to return. * @return The types at the given index. */ java.lang.String getTypes(int index); /** + * + * *
    * Restricts returned entities with these types, e.g. Person
    * (as defined in http://schema.org/Person). If multiple types are specified,
@@ -139,31 +189,39 @@ public interface SearchRequestOrBuilder extends
    * 
* * repeated string types = 4; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - com.google.protobuf.ByteString - getTypesBytes(int index); + com.google.protobuf.ByteString getTypesBytes(int index); /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return Whether the limit field is set. */ boolean hasLimit(); /** + * + * *
    * Limits the number of entities to be returned.
    * 
* * .google.protobuf.Int32Value limit = 6; + * * @return The limit. */ com.google.protobuf.Int32Value getLimit(); /** + * + * *
    * Limits the number of entities to be returned.
    * 
diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java similarity index 72% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java index c588913ad7bf..d0d794d0dcaa 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponse.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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; /** + * + * *
  * Response message for
  * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchResponse}
  */
-public final class SearchResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.enterpriseknowledgegraph.v1.SearchResponse)
     SearchResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchResponse.newBuilder() to construct.
   private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SearchResponse() {
-  }
+
+  private SearchResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchResponse();
   }
 
   @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.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable
+    return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+        .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.Builder.class);
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class,
+            com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.Builder.class);
   }
 
   public static final int CONTEXT_FIELD_NUMBER = 1;
   private com.google.protobuf.Value context_;
   /**
+   *
+   *
    * 
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ @java.lang.Override @@ -64,12 +85,15 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ @java.lang.Override @@ -77,6 +101,8 @@ public com.google.protobuf.Value getContext() { return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_; } /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -92,11 +118,14 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
   public static final int TYPE_FIELD_NUMBER = 2;
   private com.google.protobuf.Value type_;
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ @java.lang.Override @@ -104,11 +133,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ @java.lang.Override @@ -116,6 +148,8 @@ public com.google.protobuf.Value getType() { return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -130,11 +164,14 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { public static final int ITEM_LIST_ELEMENT_FIELD_NUMBER = 3; private com.google.protobuf.ListValue itemListElement_; /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ @java.lang.Override @@ -142,18 +179,25 @@ public boolean hasItemListElement() { return itemListElement_ != null; } /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ @java.lang.Override public com.google.protobuf.ListValue getItemListElement() { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } /** + * + * *
    * The item list of search results.
    * 
@@ -166,6 +210,7 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +222,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 (context_ != null) { output.writeMessage(1, getContext()); } @@ -198,16 +242,13 @@ public int getSerializedSize() { size = 0; if (context_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContext()); } if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); } if (itemListElement_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getItemListElement()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getItemListElement()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +258,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.enterpriseknowledgegraph.v1.SearchResponse)) { return super.equals(obj); } - com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse other = (com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse) obj; + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse other = + (com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse) obj; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext() - .equals(other.getContext())) return false; + if (!getContext().equals(other.getContext())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } if (hasItemListElement() != other.hasItemListElement()) return false; if (hasItemListElement()) { - if (!getItemListElement() - .equals(other.getItemListElement())) return false; + if (!getItemListElement().equals(other.getItemListElement())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +307,104 @@ public int hashCode() { } public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for
    * [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
@@ -365,33 +412,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.enterpriseknowledgegraph.v1.SearchResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.enterpriseknowledgegraph.v1.SearchResponse)
       com.google.cloud.enterpriseknowledgegraph.v1.SearchResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.Builder.class);
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class,
+              com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.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();
@@ -417,9 +463,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto
+          .internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,7 +484,8 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse build() {
 
     @java.lang.Override
     public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse buildPartial() {
-      com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse result = new com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse(this);
+      com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse result =
+          new com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse(this);
       if (contextBuilder_ == null) {
         result.context_ = context_;
       } else {
@@ -462,38 +509,39 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse 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.enterpriseknowledgegraph.v1.SearchResponse) {
-        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse)other);
+        return mergeFrom((com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -501,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse other) {
-      if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.getDefaultInstance())
+        return this;
       if (other.hasContext()) {
         mergeContext(other.getContext());
       }
@@ -537,33 +586,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getContextFieldBuilder().getBuilder(),
-                  extensionRegistry);
+            case 10:
+              {
+                input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTypeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getItemListElementFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getItemListElementFieldBuilder().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) {
@@ -576,26 +623,35 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Value context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> contextBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
      * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ public com.google.protobuf.Value getContext() { @@ -606,6 +662,8 @@ public com.google.protobuf.Value getContext() { } } /** + * + * *
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -627,6 +685,8 @@ public Builder setContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -634,8 +694,7 @@ public Builder setContext(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value context = 1;
      */
-    public Builder setContext(
-        com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setContext(com.google.protobuf.Value.Builder builderForValue) {
       if (contextBuilder_ == null) {
         context_ = builderForValue.build();
         onChanged();
@@ -646,6 +705,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -656,8 +717,7 @@ public Builder setContext(
     public Builder mergeContext(com.google.protobuf.Value value) {
       if (contextBuilder_ == null) {
         if (context_ != null) {
-          context_ =
-            com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
+          context_ = com.google.protobuf.Value.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -669,6 +729,8 @@ public Builder mergeContext(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -688,6 +750,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -696,11 +760,13 @@ public Builder clearContext() {
      * .google.protobuf.Value context = 1;
      */
     public com.google.protobuf.Value.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -712,11 +778,12 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.protobuf.Value.getDefaultInstance() : context_;
+        return context_ == null ? com.google.protobuf.Value.getDefaultInstance() : context_;
       }
     }
     /**
+     *
+     *
      * 
      * The local context applicable for the response. See more details at
      * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -725,14 +792,17 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
      * .google.protobuf.Value context = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> 
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Value,
+                com.google.protobuf.Value.Builder,
+                com.google.protobuf.ValueOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
@@ -740,24 +810,33 @@ public com.google.protobuf.ValueOrBuilder getContextOrBuilder() {
 
     private com.google.protobuf.Value type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> typeBuilder_;
+            com.google.protobuf.Value,
+            com.google.protobuf.Value.Builder,
+            com.google.protobuf.ValueOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ public com.google.protobuf.Value getType() { @@ -768,6 +847,8 @@ public com.google.protobuf.Value getType() { } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -788,14 +869,15 @@ public Builder setType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
* * .google.protobuf.Value type = 2; */ - public Builder setType( - com.google.protobuf.Value.Builder builderForValue) { + public Builder setType(com.google.protobuf.Value.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -806,6 +888,8 @@ public Builder setType( return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -815,8 +899,7 @@ public Builder setType( public Builder mergeType(com.google.protobuf.Value value) { if (typeBuilder_ == null) { if (type_ != null) { - type_ = - com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); + type_ = com.google.protobuf.Value.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -828,6 +911,8 @@ public Builder mergeType(com.google.protobuf.Value value) { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -846,6 +931,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -853,11 +940,13 @@ public Builder clearType() { * .google.protobuf.Value type = 2; */ public com.google.protobuf.Value.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -868,11 +957,12 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.protobuf.Value.getDefaultInstance() : type_; + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; } } /** + * + * *
      * The schema type of top-level JSON-LD object, e.g. ItemList.
      * 
@@ -880,14 +970,16 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { * .google.protobuf.Value type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -895,34 +987,47 @@ public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { private com.google.protobuf.ListValue itemListElement_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> itemListElementBuilder_; + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> + itemListElementBuilder_; /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ public boolean hasItemListElement() { return itemListElementBuilder_ != null || itemListElement_ != null; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ public com.google.protobuf.ListValue getItemListElement() { if (itemListElementBuilder_ == null) { - return itemListElement_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } else { return itemListElementBuilder_.getMessage(); } } /** + * + * *
      * The item list of search results.
      * 
@@ -943,14 +1048,15 @@ public Builder setItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
* * .google.protobuf.ListValue item_list_element = 3; */ - public Builder setItemListElement( - com.google.protobuf.ListValue.Builder builderForValue) { + public Builder setItemListElement(com.google.protobuf.ListValue.Builder builderForValue) { if (itemListElementBuilder_ == null) { itemListElement_ = builderForValue.build(); onChanged(); @@ -961,6 +1067,8 @@ public Builder setItemListElement( return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -971,7 +1079,9 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { if (itemListElementBuilder_ == null) { if (itemListElement_ != null) { itemListElement_ = - com.google.protobuf.ListValue.newBuilder(itemListElement_).mergeFrom(value).buildPartial(); + com.google.protobuf.ListValue.newBuilder(itemListElement_) + .mergeFrom(value) + .buildPartial(); } else { itemListElement_ = value; } @@ -983,6 +1093,8 @@ public Builder mergeItemListElement(com.google.protobuf.ListValue value) { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1001,6 +1113,8 @@ public Builder clearItemListElement() { return this; } /** + * + * *
      * The item list of search results.
      * 
@@ -1008,11 +1122,13 @@ public Builder clearItemListElement() { * .google.protobuf.ListValue item_list_element = 3; */ public com.google.protobuf.ListValue.Builder getItemListElementBuilder() { - + onChanged(); return getItemListElementFieldBuilder().getBuilder(); } /** + * + * *
      * The item list of search results.
      * 
@@ -1023,11 +1139,14 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { if (itemListElementBuilder_ != null) { return itemListElementBuilder_.getMessageOrBuilder(); } else { - return itemListElement_ == null ? - com.google.protobuf.ListValue.getDefaultInstance() : itemListElement_; + return itemListElement_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : itemListElement_; } } /** + * + * *
      * The item list of search results.
      * 
@@ -1035,21 +1154,24 @@ public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder() { * .google.protobuf.ListValue item_list_element = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> getItemListElementFieldBuilder() { if (itemListElementBuilder_ == null) { - itemListElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - getItemListElement(), - getParentForChildren(), - isClean()); + itemListElementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder>( + getItemListElement(), getParentForChildren(), isClean()); itemListElement_ = null; } return itemListElementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) } // @@protoc_insertion_point(class_scope:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) private static final com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse(); } @@ -1073,27 +1195,27 @@ public static com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1108,6 +1230,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java rename to java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java index de0f7150de1c..caab209ed976 100644 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/SearchResponseOrBuilder.java @@ -1,33 +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/enterpriseknowledgegraph/v1/service.proto package com.google.cloud.enterpriseknowledgegraph.v1; -public interface SearchResponseOrBuilder extends +public interface SearchResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.SearchResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
    * 
* * .google.protobuf.Value context = 1; + * * @return The context. */ com.google.protobuf.Value getContext(); /** + * + * *
    * The local context applicable for the response. See more details at
    * http://www.w3.org/TR/json-ld/#context-definitions.
@@ -38,24 +62,32 @@ public interface SearchResponseOrBuilder extends
   com.google.protobuf.ValueOrBuilder getContextOrBuilder();
 
   /**
+   *
+   *
    * 
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
* * .google.protobuf.Value type = 2; + * * @return The type. */ com.google.protobuf.Value getType(); /** + * + * *
    * The schema type of top-level JSON-LD object, e.g. ItemList.
    * 
@@ -65,24 +97,32 @@ public interface SearchResponseOrBuilder extends com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return Whether the itemListElement field is set. */ boolean hasItemListElement(); /** + * + * *
    * The item list of search results.
    * 
* * .google.protobuf.ListValue item_list_element = 3; + * * @return The itemListElement. */ com.google.protobuf.ListValue getItemListElement(); /** + * + * *
    * The item list of search results.
    * 
diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java new file mode 100644 index 000000000000..c9cc3c1d3b62 --- /dev/null +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java @@ -0,0 +1,588 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/enterpriseknowledgegraph/v1/service.proto + +package com.google.cloud.enterpriseknowledgegraph.v1; + +public final class ServiceProto { + private ServiceProto() {} + + 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_enterpriseknowledgegraph_v1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_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/enterpriseknowledgegraph/" + + "v1/service.proto\022(google.cloud.enterpris" + + "eknowledgegraph.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\0328google/cloud/enterprisekn" + + "owledgegraph/v1/job_state.proto\032Agoogle/" + + "cloud/enterpriseknowledgegraph/v1/operat" + + "ion_metadata.proto\032\033google/protobuf/empt" + + "y.proto\032\034google/protobuf/struct.proto\032\037g" + + "oogle/protobuf/timestamp.proto\032\036google/p" + + "rotobuf/wrappers.proto\032\027google/rpc/statu" + + "s.proto\"\266\003\n\013InputConfig\022]\n\026bigquery_inpu" + + "t_configs\030\001 \003(\0132=.google.cloud.enterpris" + + "eknowledgegraph.v1.BigQueryInputConfig\022U" + + "\n\013entity_type\030\002 \001(\0162@.google.cloud.enter" + + "priseknowledgegraph.v1.InputConfig.Entit" + + "yType\022M\n\036previous_result_bigquery_table\030" + + "\003 \001(\tB%\340A\001\372A\037\n\035bigquery.googleapis.com/T" + + "able\"\241\001\n\nEntityType\022\033\n\027ENTITY_TYPE_UNSPE" + + "CIFIED\020\000\022\016\n\006PEOPLE\020\001\032\002\010\001\022\025\n\rESTABLISHMEN" + + "T\020\002\032\002\010\001\022\020\n\010PROPERTY\020\003\032\002\010\001\022\013\n\007PRODUCT\020\004\022\020" + + "\n\014ORGANIZATION\020\005\022\022\n\016LOCAL_BUSINESS\020\006\022\n\n\006" + + "PERSON\020\007\"j\n\023BigQueryInputConfig\022=\n\016bigqu" + + "ery_table\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.google" + + "apis.com/Table\022\024\n\007gcs_uri\030\002 \001(\tB\003\340A\002\"N\n\014" + + "OutputConfig\022>\n\020bigquery_dataset\030\001 \001(\tB$" + + "\372A!\n\037bigquery.googleapis.com/Dataset\"\211\004\n" + + "\013ReconConfig\022j\n\033connected_components_con" + + "fig\030\001 \001(\0132C.google.cloud.enterpriseknowl" + + "edgegraph.v1.ConnectedComponentsConfigH\000" + + "\022h\n\032affinity_clustering_config\030\002 \001(\0132B.g" + + "oogle.cloud.enterpriseknowledgegraph.v1." + + "AffinityClusteringConfigH\000\022N\n\007options\030\003 " + + "\001(\0132=.google.cloud.enterpriseknowledgegr" + + "aph.v1.ReconConfig.Options\022W\n\014model_conf" + + "ig\030\004 \001(\0132A.google.cloud.enterpriseknowle" + + "dgegraph.v1.ReconConfig.ModelConfig\032.\n\007O" + + "ptions\022#\n\033enable_geocoding_separation\030d " + + "\001(\010\0326\n\013ModelConfig\022\022\n\nmodel_name\030\001 \001(\t\022\023" + + "\n\013version_tag\030\002 \001(\tB\023\n\021clustering_config" + + "\"5\n\031ConnectedComponentsConfig\022\030\n\020weight_" + + "threshold\030\001 \001(\002\";\n\030AffinityClusteringCon" + + "fig\022\037\n\027compression_round_count\030\001 \001(\003\"u\n\027" + + "DeleteOperationMetadata\022Z\n\017common_metada" + + "ta\030\001 \001(\0132A.google.cloud.enterpriseknowle" + + "dgegraph.v1.CommonOperationMetadata\"\352\001\n$" + + "CreateEntityReconciliationJobRequest\022W\n\006" + + "parent\030\001 \001(\tBG\340A\002\372AA\022?enterpriseknowledg" + + "egraph.googleapis.com/EntityReconciliati" + + "onJob\022i\n\031entity_reconciliation_job\030\002 \001(\013" + + "2A.google.cloud.enterpriseknowledgegraph" + + ".v1.EntityReconciliationJobB\003\340A\002\"z\n!GetE" + + "ntityReconciliationJobRequest\022U\n\004name\030\001 " + + "\001(\tBG\340A\002\372AA\n?enterpriseknowledgegraph.go" + + "ogleapis.com/EntityReconciliationJob\"\265\001\n" + + "#ListEntityReconciliationJobsRequest\022W\n\006" + + "parent\030\001 \001(\tBG\340A\002\372AA\022?enterpriseknowledg" + + "egraph.googleapis.com/EntityReconciliati" + + "onJob\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\022\022\n\npage_token\030\004 \001(\t\"\246\001\n$ListEntityRecon" + + "ciliationJobsResponse\022e\n\032entity_reconcil" + + "iation_jobs\030\001 \003(\0132A.google.cloud.enterpr" + + "iseknowledgegraph.v1.EntityReconciliatio" + + "nJob\022\027\n\017next_page_token\030\002 \001(\t\"}\n$CancelE" + + "ntityReconciliationJobRequest\022U\n\004name\030\001 " + + "\001(\tBG\340A\002\372AA\n?enterpriseknowledgegraph.go" + + "ogleapis.com/EntityReconciliationJob\"}\n$" + + "DeleteEntityReconciliationJobRequest\022U\n\004" + + "name\030\001 \001(\tBG\340A\002\372AA\n?enterpriseknowledgeg" + + "raph.googleapis.com/EntityReconciliation" + + "Job\"\331\005\n\027EntityReconciliationJob\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022P\n\014input_config\030\002 \001(\01325.googl" + + "e.cloud.enterpriseknowledgegraph.v1.Inpu" + + "tConfigB\003\340A\002\022R\n\routput_config\030\003 \001(\01326.go" + + "ogle.cloud.enterpriseknowledgegraph.v1.O" + + "utputConfigB\003\340A\002\022F\n\005state\030\004 \001(\01622.google" + + ".cloud.enterpriseknowledgegraph.v1.JobSt" + + "ateB\003\340A\003\022&\n\005error\030\005 \001(\0132\022.google.rpc.Sta" + + "tusB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022P\n\014recon_config\030\t \001(\01325.google.c" + + "loud.enterpriseknowledgegraph.v1.ReconCo" + + "nfigB\003\340A\001:\243\001\352A\237\001\n?enterpriseknowledgegra" + + "ph.googleapis.com/EntityReconciliationJo" + + "b\022\\projects/{project}/locations/{locatio" + + "n}/entityReconciliationJobs/{entity_reco" + + "nciliation_job}\"\217\001\n\rLookupRequest\022Y\n\006par" + + "ent\030\001 \001(\tBI\340A\002\372AC\022Aenterpriseknowledgegr" + + "aph.googleapis.com/CloudKnowledgeGraphEn" + + "tity\022\020\n\003ids\030\002 \003(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(" + + "\t\"\226\001\n\016LookupResponse\022\'\n\007context\030\001 \001(\0132\026." + + "google.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value\0225\n\021item_list_element" + + "\030\003 \001(\0132\032.google.protobuf.ListValue\"\314\001\n\rS" + + "earchRequest\022Y\n\006parent\030\001 \001(\tBI\340A\002\372AC\022Aen" + + "terpriseknowledgegraph.googleapis.com/Cl" + + "oudKnowledgeGraphEntity\022\022\n\005query\030\002 \001(\tB\003" + + "\340A\002\022\021\n\tlanguages\030\003 \003(\t\022\r\n\005types\030\004 \003(\t\022*\n" + + "\005limit\030\006 \001(\0132\033.google.protobuf.Int32Valu" + + "e\"\226\001\n\016SearchResponse\022\'\n\007context\030\001 \001(\0132\026." + + "google.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value\0225\n\021item_list_element" + + "\030\003 \001(\0132\032.google.protobuf.ListValue\"\230\001\n\025L" + + "ookupPublicKgRequest\022Z\n\006parent\030\001 \001(\tBJ\340A" + + "\002\372AD\022Benterpriseknowledgegraph.googleapi" + + "s.com/PublicKnowledgeGraphEntity\022\020\n\003ids\030" + + "\002 \003(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(\t\"\236\001\n\026Lookup" + + "PublicKgResponse\022\'\n\007context\030\001 \001(\0132\026.goog" + + "le.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.google" + + ".protobuf.Value\0225\n\021item_list_element\030\003 \001" + + "(\0132\032.google.protobuf.ListValue\"\325\001\n\025Searc" + + "hPublicKgRequest\022Z\n\006parent\030\001 \001(\tBJ\340A\002\372AD" + + "\022Benterpriseknowledgegraph.googleapis.co" + + "m/PublicKnowledgeGraphEntity\022\022\n\005query\030\002 " + + "\001(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(\t\022\r\n\005types\030\004 \003" + + "(\t\022*\n\005limit\030\006 \001(\0132\033.google.protobuf.Int3" + + "2Value\"\236\001\n\026SearchPublicKgResponse\022\'\n\007con" + + "text\030\001 \001(\0132\026.google.protobuf.Value\022$\n\004ty" + + "pe\030\002 \001(\0132\026.google.protobuf.Value\0225\n\021item" + + "_list_element\030\003 \001(\0132\032.google.protobuf.Li" + + "stValue2\235\022\n\037EnterpriseKnowledgeGraphServ" + + "ice\022\267\002\n\035CreateEntityReconciliationJob\022N." + + "google.cloud.enterpriseknowledgegraph.v1" + + ".CreateEntityReconciliationJobRequest\032A." + + "google.cloud.enterpriseknowledgegraph.v1" + + ".EntityReconciliationJob\"\202\001\202\323\344\223\002Y\"\022\022* - * APIs for enterprise knowledge graph product. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/enterpriseknowledgegraph/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class EnterpriseKnowledgeGraphServiceGrpc { - - private EnterpriseKnowledgeGraphServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEntityReconciliationJob", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor getCreateEntityReconciliationJobMethod; - if ((getCreateEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getCreateEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getCreateEntityReconciliationJobMethod = getCreateEntityReconciliationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("CreateEntityReconciliationJob")) - .build(); - } - } - } - return getCreateEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEntityReconciliationJob", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor getGetEntityReconciliationJobMethod; - if ((getGetEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getGetEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getGetEntityReconciliationJobMethod = getGetEntityReconciliationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("GetEntityReconciliationJob")) - .build(); - } - } - } - return getGetEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEntityReconciliationJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEntityReconciliationJobs", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEntityReconciliationJobsMethod() { - io.grpc.MethodDescriptor getListEntityReconciliationJobsMethod; - if ((getListEntityReconciliationJobsMethod = EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getListEntityReconciliationJobsMethod = EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getListEntityReconciliationJobsMethod = getListEntityReconciliationJobsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntityReconciliationJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("ListEntityReconciliationJobs")) - .build(); - } - } - } - return getListEntityReconciliationJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCancelEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelEntityReconciliationJob", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCancelEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor getCancelEntityReconciliationJobMethod; - if ((getCancelEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getCancelEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getCancelEntityReconciliationJobMethod = getCancelEntityReconciliationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("CancelEntityReconciliationJob")) - .build(); - } - } - } - return getCancelEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteEntityReconciliationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEntityReconciliationJob", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteEntityReconciliationJobMethod() { - io.grpc.MethodDescriptor getDeleteEntityReconciliationJobMethod; - if ((getDeleteEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getDeleteEntityReconciliationJobMethod = EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getDeleteEntityReconciliationJobMethod = getDeleteEntityReconciliationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntityReconciliationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("DeleteEntityReconciliationJob")) - .build(); - } - } - } - return getDeleteEntityReconciliationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getLookupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Lookup", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLookupMethod() { - io.grpc.MethodDescriptor getLookupMethod; - if ((getLookupMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getLookupMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getLookupMethod = getLookupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Lookup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("Lookup")) - .build(); - } - } - } - return getLookupMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Search", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchMethod() { - io.grpc.MethodDescriptor getSearchMethod; - if ((getSearchMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getSearchMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getSearchMethod = getSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("Search")) - .build(); - } - } - } - return getSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getLookupPublicKgMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LookupPublicKg", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLookupPublicKgMethod() { - io.grpc.MethodDescriptor getLookupPublicKgMethod; - if ((getLookupPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getLookupPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getLookupPublicKgMethod = getLookupPublicKgMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupPublicKg")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("LookupPublicKg")) - .build(); - } - } - } - return getLookupPublicKgMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchPublicKgMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchPublicKg", - requestType = com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.class, - responseType = com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchPublicKgMethod() { - io.grpc.MethodDescriptor getSearchPublicKgMethod; - if ((getSearchPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod) == null) { - synchronized (EnterpriseKnowledgeGraphServiceGrpc.class) { - if ((getSearchPublicKgMethod = EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod) == null) { - EnterpriseKnowledgeGraphServiceGrpc.getSearchPublicKgMethod = getSearchPublicKgMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchPublicKg")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse.getDefaultInstance())) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier("SearchPublicKg")) - .build(); - } - } - } - return getSearchPublicKgMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static EnterpriseKnowledgeGraphServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnterpriseKnowledgeGraphServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); - } - }; - return EnterpriseKnowledgeGraphServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EnterpriseKnowledgeGraphServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnterpriseKnowledgeGraphServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); - } - }; - return EnterpriseKnowledgeGraphServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static EnterpriseKnowledgeGraphServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnterpriseKnowledgeGraphServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); - } - }; - return EnterpriseKnowledgeGraphServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static abstract class EnterpriseKnowledgeGraphServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public void createEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEntityReconciliationJobMethod(), responseObserver); - } - - /** - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public void getEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEntityReconciliationJobMethod(), responseObserver); - } - - /** - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public void listEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEntityReconciliationJobsMethod(), responseObserver); - } - - /** - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public void cancelEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelEntityReconciliationJobMethod(), responseObserver); - } - - /** - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public void deleteEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEntityReconciliationJobMethod(), responseObserver); - } - - /** - *
-     * Finds the Cloud KG entities with CKG ID(s).
-     * 
- */ - public void lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupMethod(), responseObserver); - } - - /** - *
-     * Searches the Cloud KG entities with entity name.
-     * 
- */ - public void search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); - } - - /** - *
-     * Finds the public KG entities with public KG ID(s).
-     * 
- */ - public void lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupPublicKgMethod(), responseObserver); - } - - /** - *
-     * Searches the public KG entities with entity name.
-     * 
- */ - public void searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchPublicKgMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( - this, METHODID_CREATE_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getGetEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest, - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob>( - this, METHODID_GET_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getListEntityReconciliationJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest, - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse>( - this, METHODID_LIST_ENTITY_RECONCILIATION_JOBS))) - .addMethod( - getCancelEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest, - com.google.protobuf.Empty>( - this, METHODID_CANCEL_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getDeleteEntityReconciliationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_ENTITY_RECONCILIATION_JOB))) - .addMethod( - getLookupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest, - com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse>( - this, METHODID_LOOKUP))) - .addMethod( - getSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest, - com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse>( - this, METHODID_SEARCH))) - .addMethod( - getLookupPublicKgMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest, - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse>( - this, METHODID_LOOKUP_PUBLIC_KG))) - .addMethod( - getSearchPublicKgMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest, - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse>( - this, METHODID_SEARCH_PUBLIC_KG))) - .build(); - } - } - - /** - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static final class EnterpriseKnowledgeGraphServiceStub extends io.grpc.stub.AbstractAsyncStub { - private EnterpriseKnowledgeGraphServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnterpriseKnowledgeGraphServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public void createEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public void getEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public void listEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public void cancelEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public void deleteEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Finds the Cloud KG entities with CKG ID(s).
-     * 
- */ - public void lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLookupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches the Cloud KG entities with entity name.
-     * 
- */ - public void search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Finds the public KG entities with public KG ID(s).
-     * 
- */ - public void lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLookupPublicKgMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches the public KG entities with entity name.
-     * 
- */ - public void searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchPublicKgMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static final class EnterpriseKnowledgeGraphServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private EnterpriseKnowledgeGraphServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnterpriseKnowledgeGraphServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob createEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse listEntityReconciliationJobs(com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntityReconciliationJobsMethod(), getCallOptions(), request); - } - - /** - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public com.google.protobuf.Empty cancelEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public com.google.protobuf.Empty deleteEntityReconciliationJob(com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEntityReconciliationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Finds the Cloud KG entities with CKG ID(s).
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse lookup(com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLookupMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches the Cloud KG entities with entity name.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse search(com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchMethod(), getCallOptions(), request); - } - - /** - *
-     * Finds the public KG entities with public KG ID(s).
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse lookupPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLookupPublicKgMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches the public KG entities with entity name.
-     * 
- */ - public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse searchPublicKg(com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchPublicKgMethod(), getCallOptions(), request); - } - } - - /** - *
-   * APIs for enterprise knowledge graph product.
-   * 
- */ - public static final class EnterpriseKnowledgeGraphServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private EnterpriseKnowledgeGraphServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnterpriseKnowledgeGraphServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnterpriseKnowledgeGraphServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a EntityReconciliationJob. A EntityReconciliationJob once created
-     * will right away be attempted to start.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntityReconciliationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a EntityReconciliationJob.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEntityReconciliationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Entity Reconciliation Jobs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEntityReconciliationJobs( - com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntityReconciliationJobsMethod(), getCallOptions()), request); - } - - /** - *
-     * Cancels a EntityReconciliationJob. Success of cancellation is not
-     * guaranteed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture cancelEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelEntityReconciliationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a EntityReconciliationJob.
-     * It only deletes the job when the job state is in FAILED, SUCCEEDED, and
-     * CANCELLED.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEntityReconciliationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Finds the Cloud KG entities with CKG ID(s).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lookup( - com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches the Cloud KG entities with entity name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture search( - com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchMethod(), getCallOptions()), request); - } - - /** - *
-     * Finds the public KG entities with public KG ID(s).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lookupPublicKg( - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupPublicKgMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches the public KG entities with entity name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchPublicKg( - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchPublicKgMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_ENTITY_RECONCILIATION_JOB = 0; - private static final int METHODID_GET_ENTITY_RECONCILIATION_JOB = 1; - private static final int METHODID_LIST_ENTITY_RECONCILIATION_JOBS = 2; - private static final int METHODID_CANCEL_ENTITY_RECONCILIATION_JOB = 3; - private static final int METHODID_DELETE_ENTITY_RECONCILIATION_JOB = 4; - private static final int METHODID_LOOKUP = 5; - private static final int METHODID_SEARCH = 6; - private static final int METHODID_LOOKUP_PUBLIC_KG = 7; - private static final int METHODID_SEARCH_PUBLIC_KG = 8; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final EnterpriseKnowledgeGraphServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EnterpriseKnowledgeGraphServiceImplBase 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_ENTITY_RECONCILIATION_JOB: - serviceImpl.createEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENTITY_RECONCILIATION_JOB: - serviceImpl.getEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ENTITY_RECONCILIATION_JOBS: - serviceImpl.listEntityReconciliationJobs((com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_ENTITY_RECONCILIATION_JOB: - serviceImpl.cancelEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ENTITY_RECONCILIATION_JOB: - serviceImpl.deleteEntityReconciliationJob((com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOOKUP: - serviceImpl.lookup((com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH: - serviceImpl.search((com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOOKUP_PUBLIC_KG: - serviceImpl.lookupPublicKg((com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_PUBLIC_KG: - serviceImpl.searchPublicKg((com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest) 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 EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.enterpriseknowledgegraph.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("EnterpriseKnowledgeGraphService"); - } - } - - private static final class EnterpriseKnowledgeGraphServiceFileDescriptorSupplier - extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier { - EnterpriseKnowledgeGraphServiceFileDescriptorSupplier() {} - } - - private static final class EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier - extends EnterpriseKnowledgeGraphServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EnterpriseKnowledgeGraphServiceMethodDescriptorSupplier(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 (EnterpriseKnowledgeGraphServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EnterpriseKnowledgeGraphServiceFileDescriptorSupplier()) - .addMethod(getCreateEntityReconciliationJobMethod()) - .addMethod(getGetEntityReconciliationJobMethod()) - .addMethod(getListEntityReconciliationJobsMethod()) - .addMethod(getCancelEntityReconciliationJobMethod()) - .addMethod(getDeleteEntityReconciliationJobMethod()) - .addMethod(getLookupMethod()) - .addMethod(getSearchMethod()) - .addMethod(getLookupPublicKgMethod()) - .addMethod(getSearchPublicKgMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java deleted file mode 100644 index 3998006851b4..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/AffinityClusteringConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface AffinityClusteringConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Number of iterations to perform. Default value is 1.
-   * 
- * - * int64 compression_round_count = 1; - * @return The compressionRoundCount. - */ - long getCompressionRoundCount(); -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java deleted file mode 100644 index 4a3822751f1c..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/BigQueryInputConfigOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface BigQueryInputConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.BigQueryInputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format is `projects/*/datasets/*/tables/*`.
-   * 
- * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bigqueryTable. - */ - java.lang.String getBigqueryTable(); - /** - *
-   * Required. Format is `projects/*/datasets/*/tables/*`.
-   * 
- * - * string bigquery_table = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for bigqueryTable. - */ - com.google.protobuf.ByteString - getBigqueryTableBytes(); - - /** - *
-   * Required. Schema mapping file
-   * 
- * - * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The gcsUri. - */ - java.lang.String getGcsUri(); - /** - *
-   * Required. Schema mapping file
-   * 
- * - * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for gcsUri. - */ - com.google.protobuf.ByteString - getGcsUriBytes(); -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index c93c37fff386..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CancelEntityReconciliationJobRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface CancelEntityReconciliationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java deleted file mode 100644 index c89549ef1935..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ConnectedComponentsConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface ConnectedComponentsConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Threshold used for connected components. Default value is 0.85.
-   * 
- * - * float weight_threshold = 1; - * @return The weightThreshold. - */ - float getWeightThreshold(); -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index c437208b775b..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CreateEntityReconciliationJobRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface CreateEntityReconciliationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the Location to create the
-   * EntityReconciliationJob in. Format:
-   * `projects/{project}/locations/{location}`
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the Location to create the
-   * EntityReconciliationJob in. Format:
-   * `projects/{project}/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 EntityReconciliationJob to create.
-   * 
- * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the entityReconciliationJob field is set. - */ - boolean hasEntityReconciliationJob(); - /** - *
-   * Required. The EntityReconciliationJob to create.
-   * 
- * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The entityReconciliationJob. - */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob(); - /** - *
-   * Required. The EntityReconciliationJob to create.
-   * 
- * - * .google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob entity_reconciliation_job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJobOrBuilder getEntityReconciliationJobOrBuilder(); -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index ada398d574bf..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/DeleteEntityReconciliationJobRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface DeleteEntityReconciliationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java deleted file mode 100644 index d3fa303d76af..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/GetEntityReconciliationJobRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public interface GetEntityReconciliationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the EntityReconciliationJob resource.
-   * Format:
-   * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}`
-   * 
- * - * 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-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java deleted file mode 100644 index 84b91618181b..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/JobStateProto.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/job_state.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public final class JobStateProto { - private JobStateProto() {} - 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 = { - "\n8google/cloud/enterpriseknowledgegraph/" + - "v1/job_state.proto\022(google.cloud.enterpr" + - "iseknowledgegraph.v1*\236\002\n\010JobState\022\031\n\025JOB" + - "_STATE_UNSPECIFIED\020\000\022\025\n\021JOB_STATE_PENDIN" + - "G\020\t\022\025\n\021JOB_STATE_RUNNING\020\001\022\027\n\023JOB_STATE_" + - "SUCCEEDED\020\002\022\024\n\020JOB_STATE_FAILED\020\003\022\027\n\023JOB" + - "_STATE_CANCELLED\020\004\022\"\n\036JOB_STATE_KNOWLEDG" + - "E_EXTRACTION\020\005\022!\n\035JOB_STATE_RECON_PREPRO" + - "CESSING\020\006\022\030\n\024JOB_STATE_CLUSTERING\020\007\022 \n\034J" + - "OB_STATE_EXPORTING_CLUSTERS\020\010B\245\002\n,com.go" + - "ogle.cloud.enterpriseknowledgegraph.v1B\r" + - "JobStateProtoP\001Z`google.golang.org/genpr" + - "oto/googleapis/cloud/enterpriseknowledge" + - "graph/v1;enterpriseknowledgegraph\252\002(Goog" + - "le.Cloud.EnterpriseKnowledgeGraph.V1\312\002(G" + - "oogle\\Cloud\\EnterpriseKnowledgeGraph\\V1\352" + - "\002+Google::Cloud::EnterpriseKnowledgeGrap" + - "h::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java deleted file mode 100644 index f1b8744e3844..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/OperationMetadataProto.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/operation_metadata.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public final class OperationMetadataProto { - private OperationMetadataProto() {} - 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_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_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/enterpriseknowledgegraph/" + - "v1/operation_metadata.proto\022(google.clou" + - "d.enterpriseknowledgegraph.v1\032\037google/pr" + - "otobuf/timestamp.proto\"\307\002\n\027CommonOperati" + - "onMetadata\022V\n\005state\030\001 \001(\0162G.google.cloud" + - ".enterpriseknowledgegraph.v1.CommonOpera" + - "tionMetadata.State\022/\n\013create_time\030\002 \001(\0132" + - "\032.google.protobuf.Timestamp\022/\n\013update_ti" + - "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"r\n\005" + - "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020" + - "\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAIL" + - "ED\020\004\022\r\n\tCANCELLED\020\005\022\013\n\007PENDING\020\006B\256\002\n,com" + - ".google.cloud.enterpriseknowledgegraph.v" + - "1B\026OperationMetadataProtoP\001Z`google.gola" + - "ng.org/genproto/googleapis/cloud/enterpr" + - "iseknowledgegraph/v1;enterpriseknowledge" + - "graph\252\002(Google.Cloud.EnterpriseKnowledge" + - "Graph.V1\312\002(Google\\Cloud\\EnterpriseKnowle" + - "dgeGraph\\V1\352\002+Google::Cloud::EnterpriseK" + - "nowledgeGraph::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_enterpriseknowledgegraph_v1_CommonOperationMetadata_descriptor, - new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java b/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java deleted file mode 100644 index 5a53236f2259..000000000000 --- a/owl-bot-staging/java-enterpriseknowledgegraph/v1/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/ServiceProto.java +++ /dev/null @@ -1,534 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/enterpriseknowledgegraph/v1/service.proto - -package com.google.cloud.enterpriseknowledgegraph.v1; - -public final class ServiceProto { - private ServiceProto() {} - 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_enterpriseknowledgegraph_v1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_BigQueryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_Options_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ReconConfig_ModelConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ConnectedComponentsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_AffinityClusteringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_CreateEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_GetEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_ListEntityReconciliationJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_CancelEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_DeleteEntityReconciliationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_EntityReconciliationJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_LookupPublicKgResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_enterpriseknowledgegraph_v1_SearchPublicKgResponse_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/enterpriseknowledgegraph/" + - "v1/service.proto\022(google.cloud.enterpris" + - "eknowledgegraph.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\0328google/cloud/enterprisekn" + - "owledgegraph/v1/job_state.proto\032Agoogle/" + - "cloud/enterpriseknowledgegraph/v1/operat" + - "ion_metadata.proto\032\033google/protobuf/empt" + - "y.proto\032\034google/protobuf/struct.proto\032\037g" + - "oogle/protobuf/timestamp.proto\032\036google/p" + - "rotobuf/wrappers.proto\032\027google/rpc/statu" + - "s.proto\"\266\003\n\013InputConfig\022]\n\026bigquery_inpu" + - "t_configs\030\001 \003(\0132=.google.cloud.enterpris" + - "eknowledgegraph.v1.BigQueryInputConfig\022U" + - "\n\013entity_type\030\002 \001(\0162@.google.cloud.enter" + - "priseknowledgegraph.v1.InputConfig.Entit" + - "yType\022M\n\036previous_result_bigquery_table\030" + - "\003 \001(\tB%\340A\001\372A\037\n\035bigquery.googleapis.com/T" + - "able\"\241\001\n\nEntityType\022\033\n\027ENTITY_TYPE_UNSPE" + - "CIFIED\020\000\022\016\n\006PEOPLE\020\001\032\002\010\001\022\025\n\rESTABLISHMEN" + - "T\020\002\032\002\010\001\022\020\n\010PROPERTY\020\003\032\002\010\001\022\013\n\007PRODUCT\020\004\022\020" + - "\n\014ORGANIZATION\020\005\022\022\n\016LOCAL_BUSINESS\020\006\022\n\n\006" + - "PERSON\020\007\"j\n\023BigQueryInputConfig\022=\n\016bigqu" + - "ery_table\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.google" + - "apis.com/Table\022\024\n\007gcs_uri\030\002 \001(\tB\003\340A\002\"N\n\014" + - "OutputConfig\022>\n\020bigquery_dataset\030\001 \001(\tB$" + - "\372A!\n\037bigquery.googleapis.com/Dataset\"\211\004\n" + - "\013ReconConfig\022j\n\033connected_components_con" + - "fig\030\001 \001(\0132C.google.cloud.enterpriseknowl" + - "edgegraph.v1.ConnectedComponentsConfigH\000" + - "\022h\n\032affinity_clustering_config\030\002 \001(\0132B.g" + - "oogle.cloud.enterpriseknowledgegraph.v1." + - "AffinityClusteringConfigH\000\022N\n\007options\030\003 " + - "\001(\0132=.google.cloud.enterpriseknowledgegr" + - "aph.v1.ReconConfig.Options\022W\n\014model_conf" + - "ig\030\004 \001(\0132A.google.cloud.enterpriseknowle" + - "dgegraph.v1.ReconConfig.ModelConfig\032.\n\007O" + - "ptions\022#\n\033enable_geocoding_separation\030d " + - "\001(\010\0326\n\013ModelConfig\022\022\n\nmodel_name\030\001 \001(\t\022\023" + - "\n\013version_tag\030\002 \001(\tB\023\n\021clustering_config" + - "\"5\n\031ConnectedComponentsConfig\022\030\n\020weight_" + - "threshold\030\001 \001(\002\";\n\030AffinityClusteringCon" + - "fig\022\037\n\027compression_round_count\030\001 \001(\003\"u\n\027" + - "DeleteOperationMetadata\022Z\n\017common_metada" + - "ta\030\001 \001(\0132A.google.cloud.enterpriseknowle" + - "dgegraph.v1.CommonOperationMetadata\"\352\001\n$" + - "CreateEntityReconciliationJobRequest\022W\n\006" + - "parent\030\001 \001(\tBG\340A\002\372AA\022?enterpriseknowledg" + - "egraph.googleapis.com/EntityReconciliati" + - "onJob\022i\n\031entity_reconciliation_job\030\002 \001(\013" + - "2A.google.cloud.enterpriseknowledgegraph" + - ".v1.EntityReconciliationJobB\003\340A\002\"z\n!GetE" + - "ntityReconciliationJobRequest\022U\n\004name\030\001 " + - "\001(\tBG\340A\002\372AA\n?enterpriseknowledgegraph.go" + - "ogleapis.com/EntityReconciliationJob\"\265\001\n" + - "#ListEntityReconciliationJobsRequest\022W\n\006" + - "parent\030\001 \001(\tBG\340A\002\372AA\022?enterpriseknowledg" + - "egraph.googleapis.com/EntityReconciliati" + - "onJob\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + - "\022\022\n\npage_token\030\004 \001(\t\"\246\001\n$ListEntityRecon" + - "ciliationJobsResponse\022e\n\032entity_reconcil" + - "iation_jobs\030\001 \003(\0132A.google.cloud.enterpr" + - "iseknowledgegraph.v1.EntityReconciliatio" + - "nJob\022\027\n\017next_page_token\030\002 \001(\t\"}\n$CancelE" + - "ntityReconciliationJobRequest\022U\n\004name\030\001 " + - "\001(\tBG\340A\002\372AA\n?enterpriseknowledgegraph.go" + - "ogleapis.com/EntityReconciliationJob\"}\n$" + - "DeleteEntityReconciliationJobRequest\022U\n\004" + - "name\030\001 \001(\tBG\340A\002\372AA\n?enterpriseknowledgeg" + - "raph.googleapis.com/EntityReconciliation" + - "Job\"\331\005\n\027EntityReconciliationJob\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\003\022P\n\014input_config\030\002 \001(\01325.googl" + - "e.cloud.enterpriseknowledgegraph.v1.Inpu" + - "tConfigB\003\340A\002\022R\n\routput_config\030\003 \001(\01326.go" + - "ogle.cloud.enterpriseknowledgegraph.v1.O" + - "utputConfigB\003\340A\002\022F\n\005state\030\004 \001(\01622.google" + - ".cloud.enterpriseknowledgegraph.v1.JobSt" + - "ateB\003\340A\003\022&\n\005error\030\005 \001(\0132\022.google.rpc.Sta" + - "tusB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\007 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + - "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\022P\n\014recon_config\030\t \001(\01325.google.c" + - "loud.enterpriseknowledgegraph.v1.ReconCo" + - "nfigB\003\340A\001:\243\001\352A\237\001\n?enterpriseknowledgegra" + - "ph.googleapis.com/EntityReconciliationJo" + - "b\022\\projects/{project}/locations/{locatio" + - "n}/entityReconciliationJobs/{entity_reco" + - "nciliation_job}\"\217\001\n\rLookupRequest\022Y\n\006par" + - "ent\030\001 \001(\tBI\340A\002\372AC\022Aenterpriseknowledgegr" + - "aph.googleapis.com/CloudKnowledgeGraphEn" + - "tity\022\020\n\003ids\030\002 \003(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(" + - "\t\"\226\001\n\016LookupResponse\022\'\n\007context\030\001 \001(\0132\026." + - "google.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.go" + - "ogle.protobuf.Value\0225\n\021item_list_element" + - "\030\003 \001(\0132\032.google.protobuf.ListValue\"\314\001\n\rS" + - "earchRequest\022Y\n\006parent\030\001 \001(\tBI\340A\002\372AC\022Aen" + - "terpriseknowledgegraph.googleapis.com/Cl" + - "oudKnowledgeGraphEntity\022\022\n\005query\030\002 \001(\tB\003" + - "\340A\002\022\021\n\tlanguages\030\003 \003(\t\022\r\n\005types\030\004 \003(\t\022*\n" + - "\005limit\030\006 \001(\0132\033.google.protobuf.Int32Valu" + - "e\"\226\001\n\016SearchResponse\022\'\n\007context\030\001 \001(\0132\026." + - "google.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.go" + - "ogle.protobuf.Value\0225\n\021item_list_element" + - "\030\003 \001(\0132\032.google.protobuf.ListValue\"\230\001\n\025L" + - "ookupPublicKgRequest\022Z\n\006parent\030\001 \001(\tBJ\340A" + - "\002\372AD\022Benterpriseknowledgegraph.googleapi" + - "s.com/PublicKnowledgeGraphEntity\022\020\n\003ids\030" + - "\002 \003(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(\t\"\236\001\n\026Lookup" + - "PublicKgResponse\022\'\n\007context\030\001 \001(\0132\026.goog" + - "le.protobuf.Value\022$\n\004type\030\002 \001(\0132\026.google" + - ".protobuf.Value\0225\n\021item_list_element\030\003 \001" + - "(\0132\032.google.protobuf.ListValue\"\325\001\n\025Searc" + - "hPublicKgRequest\022Z\n\006parent\030\001 \001(\tBJ\340A\002\372AD" + - "\022Benterpriseknowledgegraph.googleapis.co" + - "m/PublicKnowledgeGraphEntity\022\022\n\005query\030\002 " + - "\001(\tB\003\340A\002\022\021\n\tlanguages\030\003 \003(\t\022\r\n\005types\030\004 \003" + - "(\t\022*\n\005limit\030\006 \001(\0132\033.google.protobuf.Int3" + - "2Value\"\236\001\n\026SearchPublicKgResponse\022\'\n\007con" + - "text\030\001 \001(\0132\026.google.protobuf.Value\022$\n\004ty" + - "pe\030\002 \001(\0132\026.google.protobuf.Value\0225\n\021item" + - "_list_element\030\003 \001(\0132\032.google.protobuf.Li" + - "stValue2\235\022\n\037EnterpriseKnowledgeGraphServ" + - "ice\022\267\002\n\035CreateEntityReconciliationJob\022N." + - "google.cloud.enterpriseknowledgegraph.v1" + - ".CreateEntityReconciliationJobRequest\032A." + - "google.cloud.enterpriseknowledgegraph.v1" + - ".EntityReconciliationJob\"\202\001\202\323\344\223\002Y\"\022\022*